[osg-users] Bad representation with the osgViewer::View SKY_LIGHT
robert.osfield at gmail.com
Mon Oct 15 06:32:32 PDT 2007
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 <muench.tobias at googlemail.com> 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
> osg-users at lists.openscenegraph.org
More information about the osg-users