Thanks it works for me.
But i am setting the lighting mode before setting the camera, it does
not works if i modify the lighting mode after setting the camera, ie the
Renderer have been constructed. 

Fabien

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Robert Osfield
Sent: vendredi 21 novembre 2008 19:02
To: OpenSceneGraph Submissions
Subject: Re: [osg-submissions] Bug with view lighting mode

Hi Fabien,

I have gone for a switch based handling of the mapping between
View::LightingMode and SceneView rather placing everything on one line.
I did this to keep the code more readable.

Could you do an svn update and see if this works fine for you.

Robert.

On Tue, Nov 18, 2008 at 11:19 AM, Fabien Lavignotte
<[EMAIL PROTECTED]> wrote:
> Hi,
> I found a bug when setting lighting mode to NO_LIGHT on a osg::View.
> The HEADLIGHT was still present, and no way to remove it. After some 
> investigations, i found that the osgViewer::Renderer does not take 
> into account the lighting mode of the view. It is always set to 
> HEADLIGHT. So i modify the Renderer constructor to handle it and it 
> works (no light!) but maybe i miss something...
> Fabien
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscene
> graph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegr
aph.org

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to