Page 1 of 1

Transitioning between materials.

Posted: Fri Jun 17, 2005 3:59 pm
by LeggoMahEggo
I have two 640x480 jpgs that I want to use as billboard textures on a plane mesh.

After X seconds I want tex1 to fade to tex2 on the plane, sort of like a slide transition in MS Power Point. Is something like this possible with Ogre material scripts or through programming?

I realize Cg could probably do it, but I don't want to mess with that unless I absolutely have to.

Posted: Fri Jun 17, 2005 5:52 pm
by haffax
Having changing images as a texture unit is indeed possible using scripts.
For how see the manual: http://www.ogre3d.org/docs/manual/manual_19.html#SEC59

For more flexibility you can always change images programatically too, maybe for better blending or such. Look at the various ogre demos and the API docs on how to do it. Namely DynTex and RenderToTexture demos might provide useful example code.