Hello,

I'm currently working on a scene and I try to reproduce the sun light.
I looked at osgmanylight tutorial from osg web site.
But I'm facing a problem with this code:

//do not allow the osgProducer's internal RenderStage clear the frame buffer
//if the RenderStage did clear the frame buffer, we would lose all of
//the rendering we did in the light passes
    osgProducer::OsgCameraGroup::SceneHandlerList& shvec =
viewer.getSceneHandlerList();
    for( osgProducer::OsgCameraGroup::SceneHandlerList::iterator itr =
shvec.begin();
           itr != shvec.end(); ++itr ) {
          (*itr)->getSceneView()->getRenderStage()->setClearMask(0);
    }

What is the equivalent in osg 2x?
The tutorial code :
http://www.fx.clemson.edu/~acnatha/devnull/osg/osgmanylights.tar.gz

Thanks in advance, 
Best regards.

John.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to