Hi Vincent,

If you don't want lighting to affect your skysphere, you should turn it off.

skysphere->getOrCreateStateSet->setMode( GL_LIGHTING,
osg::StateAttribute::OFF );

To make it transparent, you need to enable a blend function, as well as tell
OSG to put it in the transparent bin so that it plays nicely with the rest
of the scenegraph - something like:

skysphere->getOrCreateStateSet->setMode( GL_BLEND, osg::StateAttribute::ON
);
skysphere->getOrCreateStateSet->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);

(Might be wrong - this was from memory).

Hope that helps,

David
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to