Use a ClearNode at the top of your scene graph. Call ClearNode::setClearColor() during update (or at least outside the cull/draw). -Paul
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Richard Sent: Tuesday, November 27, 2007 7:37 AM To: OpenSceneGraph Users Subject: [osg-users] how to force a setClearColor call Hi, I'm using a sceneView and I would like to execute a sceneView->setClearColor between the cull and the draw but it seems that the calls has no effect on the first draw. It has effect only on the next draw. Is it possible to force the setClearColor to be apply on the next draw? Thanks sceneView->cull(); sceneView->setClearColor(vec4f(.5,.5,.5,1); sceneView->draw(); //is it possible to perform this draw with the new color? Jo
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

