Hi Ricky,

I've just been reviewing the RenderBinDetails code in
osgUtil::CullVsitor and now realise that its actually more flexible
than I've given it credit ;-)

In StateSet::RenderBinMode enum there is a ENCLOSE_RENDERBIN_DETAILS
setting which is meant to allow one to assign the current render bin
to the one enclosed, and any subsequent RenderBin assignement will
then be nested (enclosed) within this.  This feature would allow one
to make all objects within a subgraph decorated by this StateSet to be
placed in the specified bin i.e the transparent bin.  Now if the
StateSet within this subgraph have their own RenderBinDetails set then
they will create a new RenderBin within this RenderBin.  This sounds
like a good fit for what you want.

There is a but, and that is that ENCLOSE_RENDERBIN_DETAILS is
supported by CullVisitor, it is ignored :-|

But all is not, it turns out that the default behavior is
ENCLOSE_RENDERBIN_DETAILS so its actually a totally rendundent enum.
I'll now remove this enum to avoid any confusion.

The next enum not implementated yet is the OVERRIDE_RENDERBIN_DETAILS,
which is ignored at present.  There is still value in it above
ENCLOSE_RENDERBIN_DETAILS, and looking at the CullVisitor code it
might not actually be that difficult to implement so I may do this.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to