[osg-users] default lighting

2009-02-16 Thread Ben Axelrod
When I don't have any lights in my scene, and my viewer's lighting mode is set to no_light: osgViewer::Viewer() -> getCamera()->getView()->setLightingMode(osg::View::NO_LIGHT) there is still some default lighting in the scene. Where does this light come from, and how can I change it to be bri

Re: [osg-users] default lighting

2012-04-11 Thread Gianni Ambrosio
Hi All, I was looking for an answer to the same question. Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46964#46964 ___ osg-users mailing list osg-users@lists.openscenegraph.org http:

Re: [osg-users] default lighting

2012-04-15 Thread Andrey Ibe
Hi, just a guess - try global ambient intensity. i'm using this code: Code: osg::LightModel *lightModel = collisionStateSet ? dynamic_cast (collisionStateSet->getAttribute(osg::StateAttribute::LIGHTMODEL)) : NULL; if (lightModel) { globalAmbientIntensity = lightModel->getAmbientIntensity