Hi Daniel,

And a third correction... my testing didn't work because I was running
and old version of osgviewer rather than one I modified for testing...
when running the correct osgviewer the

 viewer.setLightingMode(osg::View::SKY_LIGHT);

Does indeed work as intend, so 2.0 looks solid to me.

In the case of NO_LIGHT it'll be working as well, so SceneView
shouldn't be setting any light but OpenGL itself still has default
values of glLight.  Disabling the viewers default light doesn't
actually disable the OpenGL lighting mode, so perhaps this the later
is what you were expecting.

If you to disable OpenGL lighting then you'll need to disable via a
GL_LIGHTING mode i.e.

viewer.getCamera()->getOrCreateStateSet()->setMode(GL_LIGHITNG,
osg::StateAttribute::OFF);

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to