i just don't like to the idea to add content to the game which can be computed (very cheap)
i will look into the animation system of the material subsystem...
I knew that you would say something like that, because I have the same opinion on this
.
That is why I wrote this feature request:
https://sourceforge.net/tracker/?func=detail&aid=2975344&group_id=157793&atid=805245Quote from 03-28:
I had to make so many to keep repetition @ a minimum, but I could reduce
the size of most animations by factor 2 if I would have the ability to play
forwards & then backwards again. I will look @ the code after I have
finished this stuff
Also there is room for optimization in better usage of the different
blendmodes & I am sure there is some kind of automation tool which will
analyze the frames & save only the differences between them, that will
reduce size drastically also, but I had no time to look for that (yet)...
I also made different color-versions of many of the animations, because
this will make the mappers work easy in 'programming' the material files &
also made animations that are just reverse to their originals. This also
would not be necessary with some code optimization...
Quote end.
Or here:
Re: Animated Textures for UFOs [WIP]
« Reply #80 on: March 30, 2010, 08:16:15 pm »
Mattn, in the long term we should think about expanding the material system.
I think for someone who knows the code here like you do this would rather be easy & the effects would be minimizing the need for additional frames Wink
I would like to have some more commands:
animb - play backwards
animr - play forwards, after reaching last frame play backwards, then begin again
animp - pause the animation for x time @ frame y (animp a15 3.0)
Also we should add additional flares & envmaps, I have done experiments with that & it is working, I now can use 10 different flares with a simple command like 'flare 7', but the envmapping-function seems to have some kind of error, because it does not matter @ all which envmap you use, they look all the same in-game, maybe someone could take a look @ that also, I think there might be a bug hidden somewhere...
Quote end.
Regarding the colors.
I really did this on purpose, you never could adjust the colors so exactly with the 'cryptic color command' in the material system without lot of testing & time...
This color command is nice for the flares
But this is only v2 version of the animations. There is a lot to find that could be enhanced, modified & repaired, but I think before putting all this stuff in trunk you maybe should check out this stuff in your personal version ?!