You could use an individual bit in the node mask of each geode or drawable
added to a specific render bin. Then you can turn on and off bins by
setting the appropriate bitpattern in the camera's mask.

Caveat: This only supports up to 32 individual bins and may clash with
other code already using node masks ;)

Christian


2013/1/12 Frank Sullivan <[email protected]>

> Hi,
>
> I was just wondering if there is any way to draw only a specific bin,
> either by telling the cull visitor to throw away objects that belong in the
> other bins, or by somehow influencing the draw process after the cull pass?
>
> What I have in mind is deferred lighting, where one often wants to draw
> only the opaque objects to the g-buffer, and then draw the transparent
> objects after the lighting pass.
>
> Thank you!
>
> Cheers,
> Frank
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=51932#51932
>
>
>
>
>
> _______________________________________________
> 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