Fading with Irrlicht.NET
Fading with Irrlicht.NET
I am trying to fade a ISceneNode in Irrlicht.Net, but cannot find the property to modify (alpha value maybe?). Anybody? Thanks
Maybe I don't understand what you want to do but it could be just :
this code fade the whole screen.
I you want to fade just one node, I suggest you to use a material with EMT_TRANSPARENT_ADD_COLOR type and change several times the texture, using for example textures which are blacker and blacker to fade out (so the node will be more and more transparent).
Code: Select all
gui::IGUIInOutFader* fader =device->getGUIEnvironment()->addInOutFader();
fader->setColor(color);
fader->fadeIn(time);
I you want to fade just one node, I suggest you to use a material with EMT_TRANSPARENT_ADD_COLOR type and change several times the texture, using for example textures which are blacker and blacker to fade out (so the node will be more and more transparent).
Unfortunately, the Irrlicht.NET library lacks the IGUIInOutFader, but the second suggestion on making multiple textures does work even though it is a bit convoluted. Any suggestions on how to fade out a ILightSceneNode.. I tried modifying the radius of the light, but I get strange results.. again with the Irrlicht.NET library.