Hello,

 

Maybe I have discovered a bug: I like to create a light with the class Light, then setting the parameters to it, like the ambient value due light->setAmbient(osg::Vec4()). The Vec4 contains the r,g,b values and w=1. The blue value hasn’t any effect in our simulation, so the ambient light is always a little bit brown (only red and green mixed). This is not what I would like to have, a little bit grey instead of brown.

 

When I want to check the ambient value of the light through osg::Vec4 light->getAmbient(), I get the right blue value which I set before, but I don’t see it.

 

Is this problem already known? How can I fix it?

 

Thank you in advance,

Frank Güttler.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to