Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: CptWhite on March 04, 2003, 10:17:38 am

Title: Enabling Animated Textures / Glow Animated Textures?
Post by: CptWhite on March 04, 2003, 10:17:38 am
ok you got me, how do i replace a pcx texture with an ani? I cant seem to work it out , ive tired simply put the ani (same file name) in the maps dir , effects dir, data dir and base dir, no luck so far :(

also what about glow ani's ?
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Bobboau on March 04, 2003, 10:47:54 am
it looks for the pcx first then ani,
if you have pcx and an ani it will load the pcx
so make sure there is no pcx with the same name as the ani
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: CptWhite on March 04, 2003, 12:30:57 pm
grrr i'm telling you i did that before!

anyway it's in game now and it does work ....ISH

the animation jumps all over the place and doesnt follow the set frame/sec rate i set (it was only a 2 frame animation so i dotn know about series, im assuming thats fine)

is there any particular TYPE of ani that i should be using, i set it as the default type, the ones used for explosions and shockwaves...
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: CptWhite on March 11, 2003, 11:18:08 am
bump, bob comment ?
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Bobboau on March 11, 2003, 06:58:21 pm
well you are the first person to actualy try and use this so it might not be working well, what specificly are you trying to do, it sounds like you are trying something other than just makeing an animation and sticking it were a normal texture should be. anyway the way I had the animation system set up it uses the global time and figures out were aproxamately in the animation it should be, so , maybe I did it wrong
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: CptWhite on March 12, 2003, 10:27:50 am
i stuck it on one of the side fins of your sharlin model

appeared fine , only a 2 frame animation, the frames would cycle really quickly and then slow right down......was odd.
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Bobboau on March 12, 2003, 10:35:26 am
well that was probly becase the frame rate of the game was slower than the frame rate of the animation, it does it's best to aproxamate, but when there are only two frames in the animation (especaly on the defalt FPS of 15) it will look a bit odd, try loering the frame rate (of the animation) to something like 5 or raiseing the number of frames
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Petrarch of the VBB on March 12, 2003, 01:58:55 pm
So there needs to be some sort of table or FAQ for Number of frames and desired framerate?
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Bobboau on March 14, 2003, 10:15:19 pm
well there won't be many times that there are animations of just two frames, I am going through right now and looking through my code, already I have found a bug in animated glowmaps that will cause a crash if you have a static glow map on an animated texture
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Petrarch of the VBB on March 15, 2003, 05:08:44 am
I discoverd that yesterday. I animated the front panel of a fenris to have the lights go form white to yellow to red, but it crashed both FRED and FS.
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: CptWhite on March 15, 2003, 07:48:04 am
well i simply have the 2 frame animation texture (.ani) (no glow map, pcx or ani) and no original pcx map, and the thing just keeps crashing to desktop now :( its definately texture/model based, wireframe fred doesnt mind, "show ships models" and it crashes :)
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Solatar on March 15, 2003, 10:40:57 am
Quote
Originally posted by Bobboau
well there won't be many times that there are animations of just two frames, I am going through right now and looking through my code, already I have found a bug in animated glowmaps that will cause a crash if you have a static glow map on an animated texture


Can glowmaps be animated?
Title: Enabling Animated Textures / Glow Animated Textures?
Post by: Bobboau on March 15, 2003, 06:44:25 pm
yes...