HI Daniel, Frustratingly this code was actually working before 2.0, the code for passing the lighting mode seems to have gone awol :-|
Robert. On 6/27/07, Kallfass, Daniel, SDGE1 <[EMAIL PROTECTED]> wrote:
Hi Robert, I'm using OSG 2.0. I simply tried to call _viewer->setLightingMode( osg::View::NO_LIGHT ); Where _viewer is a osgViewer::Viewer object. But there was no result. I had a look at the osgViewer/Viewer.cpp source and there the osgUtil::SceneView objects are all initialized with osgUtil::SceneView::HEAD_LIGHT. (see line 1549: unsigned int sceneViewOptions = osgUtil::SceneView::HEADLIGHT;) The lighting setting from osg::View is ignored. Thanks, Daniel -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Wednesday, June 27, 2007 2:26 PM To: osg users Subject: Re: [osg-users] How to set up lighting in osgViewer::Viewer Hi Daniel, On 6/27/07, Kallfass, Daniel, SDGE1 <[EMAIL PROTECTED]> wrote: > how can I setup lighting in osgViewer::Viewer? I want to disable the > scene light. > > I have tried to call setLightingMode from osg::View but it seems to be > ignored. I could also find out that osgViewer::Viewer internally creates > osgUtil::SceneView objects which are set up with HEAD_LIGHT and there is > no way to change this setting. > > Any ideas how to solve this problem? The osg::View lighting mode variables should be used when setting up the internal SceneViews. Could you post the lines you are using? And which version of the OSG you are using. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
