hi everybody,
i´m making a game with irrlicht, but can´t find any tutorials about dynamic textures. can anybody tell me how to create or use dynamic(or "animated") textures... i.g wich format do they have to be...
dynamic textures
I used an animated texture on my water, might be what you're looking for:
Code: Select all
// load the texture movie
core::array<video::ITexture*> watermovie;
for (int i = 0; i < 45; i++)
{
char tmp[64];
if(i < 10)
sprintf(tmp, "textures/water/water0%d.tga", i);
else
sprintf(tmp, "textures/water/water%d.tga", i);
video::ITexture* t = pDriver->getTexture(tmp);
watermovie.push_back(t);
}
anim = pSceneMgr->createTextureAnimator(watermovie, 40);
someNode->addAnimator(anim);