Crossfade transitions
-
- Posts: 4
- Joined: Thu Sep 08, 2005 3:16 am
Crossfade transitions
Has anybody been able to successfully do a crossfade/dissolve between two scenes in Irrlicht? I am rendering one scene to a texture and then modifying the alpha values on the vertices of a quad and rendering the quad (with the render-to-texture) over the other scene. The problem arises when I draw the quad. If I use EMT_TRANSPARENT_ADD_COLOR, the quad is always 50% transparent, no matter the alpha values on the vertices. If I use EMT_TRANSPARENT_VERTEX_ALPHA, there is much more of a fading effect, but it looks like the world is plunging into the sun (ie, its extremely bright). None of the other material types seem to help much, altho I haven't tried them all. I'm presuming that in the first case, the problem is that the rendering is done with A1R5G6B5 color format. I tried changing a few values in the irrlicht source code to A8R8G8B8 color format, but no use, even though I am creating the device in 32 bit mode. In the second case, It appears that the problem is that the color from the quad is "added" to the color value of the underlying scene, thus making everything look ultrabright. Does anybody have any suggestions, particularly ones that don't involve much irrlicht-source modification?