If you don't want any light in your scene
You just  have to
setMode(GL_LIGHTING,OFF,OVERRIDE) on you root's stateset
Hope it helps


Ben Axelrod wrote:
> I cannot seem to turn off the light in osg::View. I can change it between 
> headlight and sky light, but when I try NO_LIGHT, I still get the headlight. 
> 
> > _viewer->getCamera()->getView()->setLightingMode(osg::View::SKY_LIGHT); 
> > //works
>  
> 
> > _viewer->getCamera()->getView()->setLightingMode(osg::View::HEADLIGHT); 
> > //works
>  
> 
> > _viewer->getCamera()->getView()->setLightingMode(osg::View::NO_LIGHT); 
> > //still get headlight
>  
> 
> How can I turn off this default light? How is it related to the osg::Lights 
> in the scene? I noticed when I add an osg::Light, then the headlight is 
> overridden. How can I change the light parameters of the SKY_LIGHT or 
> HEADLIGHT? 
> 
> I am using osg version 2.6. 
> 
> Thanks, 
> -Ben
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67427#67427





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

Reply via email to