You can control the ambient light via the View(er).getLight() object. Or just control things via a osg::LightSource placed in your scene. See osglight example.
On 10/10/07, Tobias Münch <[EMAIL PROTECTED]> wrote: > I have a problem with the lighting mode in OSG 2.0. > > The SKY_LIGHT of the old osgProducer::Viewer in OSG1.2 is an uniform light > and each object in the scene has the same brightness. Also different viewing > angles didn't have any influence. > > The SKY_LIGHT of the new osgViewer::View is a directional light from the top > and only affects the faces that are aligned upwards. Maybe it corresponds > more with the name of a SKY light, but it looks very strange. > > I like the effect of the SKY_LIGHT from osgProducer::Viewer more than the > new one. Is there a possibilty to get a uniform light source in OSG 2.0. The > default light source HEADLIGHT is also no option for me, because it produces > different brightness depending on the viewing angle. > > So what I need is exactly the effect of the osgProducer::Viewer SKY_LIGHT in > OSG 2.0 and the CompositeViewer. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

