Hi, Is there any format for textures that would support animation (as GIF animated but with 24 bits + alpha pics)?
I was looking at one of theses games.
Having this we could select a frame for a texture and change expressions on characters like the LEGO characters.
I think it's possible to do it using a sequence of JPEG files. But would have to unload the textures once it's has been changed. For an expression system, specific frames associated with an expression an the engine (AI or script) would change it.
This could also be useful for lots of things (animated skydome, skybox, textures being damaged after an impact, and the list goes on..)
This could even be used as a cheap way to do video into IRRlicht (Using the new filesystem; The JPEG file sequence could be stored inside a ZIP file, it would then be faster to retrieve from the disk).
Anyway it's just ideas that I had, no time right now to try to implement something to check how it can be done.
Still there would still a need to load this asyncronously. I was wondering if there could be an easier way to do it. Do you have plans to improve the file loaders so that they can work that way? (Sorry if it's the X times I ask for asyncronous loaders, IRRlicht 1.6 is now out...)
Animated textures? Better loaders?
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
Thanks Hybrid! I did not think about this trick. Does IRRlicht have "texture matrices" functions?
Hi JP! Yes, I was looking for a GIF equivalent (animation feature inside the format) but that would support 24 bit with alpha.
Since we don't have loaders that are ayncronous, I was thinking I could "preload" textures at "loading time". So this should not stop the animation since the textures will already be in memory. The only thing is that will limit the size on the animations I would do.
Hi JP! Yes, I was looking for a GIF equivalent (animation feature inside the format) but that would support 24 bit with alpha.
Since we don't have loaders that are ayncronous, I was thinking I could "preload" textures at "loading time". So this should not stop the animation since the textures will already be in memory. The only thing is that will limit the size on the animations I would do.