[osg-users] Code porting

Jon lunatike at hotmail.fr
Sun Mar 2 11:52:45 PST 2008


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080302/e8df5000/attachment.htm 


More information about the osg-users mailing list