Hi all,

Don't know if anyone ever noticed but the clear color from a camera
config file is getting ignored.
 
The default clear color is set in:
Producer/src/Camera.cpp, Camera::Camera( void ), default set to 0.2,
0.2, 0.4,1.0
 
Upon creation of a Viewer/OsgCameraGroup the config file is parsed and
if specified a clear color is set.
However after parsing the config file during OsgCameraGroup::realize()
(in OsgProducer/OsgCameraGroup.cpp) the clear color of all cameras are
reset to 0.2, 0.2, 0.4,1.0. Hence over writing the clear color of the
config file.

As far a I can tell the setClearColor in the OsgCameraGroup::realize is
not necessary (line 545 src/OsgProducer/OsgCameraGroup.cpp in the latest
cvs-version).

Kind regards,

Robbert

This e-mail and its contents are subject to the DISCLAIMER at 
http://www.tno.nl/disclaimer/email.html
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to