Page 1 of 2

Animated Textures

Posted: September 14th, 2009, 1:40 pm
by dr.tygen
Is it possible to have animated textures?

Re: Animated Textures

Posted: September 14th, 2009, 2:53 pm
by GR1M
isnt lava a animated texture?

Re: Animated Textures

Posted: September 14th, 2009, 3:28 pm
by dr.tygen
Not precisely:

The current lava texture only scrolls and changes brightness. I'm talking about textures that could be used for TVs, computer screens, etc. Like a GIF.

Re: Animated Textures

Posted: September 14th, 2009, 4:02 pm
by Chaze007
the answer is yes, take a look at the animated texture video on the home page - & in the 2.4 dev there's a map to check out too.

Re: Animated Textures

Posted: September 14th, 2009, 10:39 pm
by GR1M
Yeah i was just about to say that because i remember seeing that...

Re: Animated Textures

Posted: September 15th, 2009, 9:13 am
by dr.tygen
Hmmm. I'm assuming this is a feature of the new version that is coming out.

It looks like it takes a plethora of single textures...stored INSIDE sandbox. It probably wouldn't be feasible to do MANY animated textures--as in 30 plus animated computer screen textures.

Re: Animated Textures

Posted: September 15th, 2009, 9:45 am
by Hirato
dr.tygen wrote:It probably wouldn't be feasible to do MANY animated textures
correct, each frame is stored in memory, and the engine isn't set up to unload things on occasion, so all the frames are stuck in memory once loaded. so if anything, you should beware using texanim, if you must use it at all.

and for the curious, this feature is inside 2.3, I think it was just suffering a few bugs that keeps it from working too well (they've been sorted out in 2.4)
you'll have to ask offtools

Re: Animated Textures

Posted: September 15th, 2009, 10:19 am
by dr.tygen
texanim? What are the parameters?

ie:
/texanim _______ _____ ____ _____ ____

Re: Animated Textures

Posted: September 15th, 2009, 12:57 pm
by offtools
its all explained inside the map: tutorial-texanim

texaniminit [slot]
texanimadd [slot] [replacmentslot]
texanimstart [slot]
texanimstop [slot]
texanimreset [slot]
texanimdelay [slot] [millis]

slot is number f the textureslot

Re: Animated Textures

Posted: September 15th, 2009, 1:07 pm
by offtools
btw: there's a different implementation of animated textures in bloodfrontier. the idea on that implementation is putting the frames for animation into one image.