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

Robert Osfield robert.osfield at gmail.com
Sat Oct 31 04:26:27 PDT 2015


Hi Glenn,

On 30 October 2015 at 21:40, Glenn Waldron <gwaldron at gmail.com> wrote:

>
> 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.
>

A single RenderBin's can't have two types of rendering order at the same
time.



> 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?
>

The simplest way is to Use a different RenderBin number so the OSG's
rendering back-end creates a bin for it.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151031/fd1b3703/attachment-0003.htm>


More information about the osg-users mailing list