Hi Michel,
On 7/5/07, Michel van Elk <[EMAIL PROTECTED]> wrote:
Hi Robert,
Calling setLightingMode doesn't change the lightingmode of the rendering.
I've tried to call setLightingMode(osg::View::NO_LIGHT) before and after
the CompositeViewer is finalized but no succes: I keep the default
headlight.
There was a discussion about this topic just a few days ago, so please
check the archive for the details.
To switch off lighting you'll need to do:
view.getCamera()->setMode(GL_LIGHITNG, osg::StateAttribute::OFF);
The setLightingMode(osg::View::NO_LIGHT) just tells the OSG that it
should set its own default Light object, but use OpenGL default, or
rely those defined in the scene graph.
BTW, this is exactly the same situation as it was with SceneView, the
View methods just move these control out to a higher level. Read the
other thread though as the issue of naming and functionality is a
little more involved.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/