I want to gradually set transparency for my skybox. Behind it there's only the scene-color.
I tried to get to the vertices by casting to IMeshSceneNode, but it doesn't work. Otherwise I could have used vertex-transparency.
Using color-transparency together with the material's ambient color doesn't seem to work either.
I'd like to get a blend of scene-color and skybox without having to write a custom shader for it. Any ideas?
fading in/out skybox
Re: fading in/out skybox
Yeah, tricky because it has no real mesh (aka IMesh or IMeshBuffer interface). I suppose the easiest solution is to create your own skybox scenenode. Copy CSkyBoxSceNode.cpp/.h source and then add a function which directly modifies the color of the vertices.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: fading in/out skybox
I tried it again with color transparency and ambient color. I had forgotten to enable lighting, because it's usually on by default (except for skyboxes...).
Works the way I wanted now. Thanks anyway.
Works the way I wanted now. Thanks anyway.