Hi folks, I am unable to create complete darkness in osg. I'm setting the only light source to not emit anything, but the objects in my scene are still visible, although very faintly. Is there something wrong with the code, or is it just osg/opengl?
osg::Light* light = new osg::Light(); light->setAmbient(osg::Vec4d(0.0f, 0.0f, 0.0f, 1.0f)); light->setDiffuse(osg::Vec4d(0.0f, 0.0f, 0.0f, 1.0f)); light->setSpecular(osg::Vec4d(0.0f, 0.0f, 0.0f, 1.0f)); osgView* view = new osg::View(); osgView->setLightingMode(osg::View::HEADLIGHT); view->setLight(light); Thanks, Necdet Can _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

