Hi Jose,

Thank you for your pieces of advices Jean-Sébastian, but how coud I make it if 
the variable that makes cloud effect is an Environment variable and this 
variable is the father of the terrain?

I don't quite get what you're saying about environment variables...

You can structure your graph in any way you want. But if your clouds are under the ShadowedScene, they will be affected by shadows. You can set a null osg::Program or put a different shader on your clouds to prevent this (the first suggestion in my previous message) or you can move your clouds to not be under your ShadowedScene (the second suggestion).

The clouds cannot be a parent of the terrain, because they're both geometry, therefore both leaf nodes. Please look at your scene graph structure again and figure out how to make it work (writing your whole scene to a .osg file is useful in cases like this, use osgDB::writeNodeFile(*sceneRoot, "filename.osg"); ).

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to