[osg-users] Rendering in traversal order - how?

Glenn Waldron gwaldron at gmail.com
Fri Oct 30 14:40:45 PDT 2015


Been scratching my head on this one for a while...

I have a node created by a plugin. I need the contents of this node to be
rendered in traversal order. How do I do it?

Naturally, I tried to use a TraversalOrderBin... setRenderBinDetails(0,
"TraversalOrderBin"). However, this will only activate my new render bin if
the *current* RenderBin has a different bin number. If the current bin is
already #0, it will put my geometry in that existing bin and ignore my
request for a TraversalOrderBin.

Tried an OVERRIDE; tried disabling nesting; even tried overriding
traverse() and tricking the CullVisitor into creating a new bin for me. No
luck.

So...how do I force traversal-order rendering for this node?

Glenn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151030/735f8d32/attachment-0001.htm>


More information about the osg-users mailing list