Hi Kim,

RenderStage/RenderBin/StageGraph/RenderLeaf are a collection of
classes used to manage the OSG's rendering backend, controlling both
the draw order and state inheritance.   The cull traversal reads items
like StateSet::RenderBinDetails and in scene graph osg::Camera's as
guide of how to set up the RenderState/RenderBin graph.

You can via cull callbacks create your own RenderStages/RenderBin and
place these in the viewer's active RenderStage, but in general its
easier just to use osg::Camera and StateSet::RenderBinDetails to
control this part of the rendering backend.  Back in the 1.0 days one
couldn't do this so flexible so one would be forced into manually
creating RenderStage/Bins on each frame, but it was much more awkward
and code hungry then the more scene graph centric means.

Robert.

On Wed, Mar 12, 2008 at 6:27 PM, Kim C Bale <[EMAIL PROTECTED]> wrote:
> At the moment I'm using a lot of post/pre render passes to generate a
>  series of effects and was looking toward cleaning up my code. I was
>  browsing the osgUtil lib and came across the renderstage class, it
>  sounds like I could use it to tidy up the structure of my graph. But I
>  don't really understand how they're used.
>
>  Does anybody know of a good example where they're used outside of the
>  core osg libs? I didn't find anything in the example code.
>
>  Cheers,
>
>  Kim.
> *****************************************************************************************
>  To view the terms under which this email is distributed, please go to 
> http://www.hull.ac.uk/legal/email_disclaimer.html
>  
> *****************************************************************************************
> _______________________________________________
>  osg-users mailing list
>  [email protected]
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to