Transitioning between materials.

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
LeggoMahEggo
Gnoblar
Posts: 6
Joined: Sun Jun 12, 2005 1:09 am

Transitioning between materials.

Post 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.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8
Contact:

Post 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.
team-pantheon programmer
creators of Rastullahs Lockenpracht
Post Reply