On Sat, Oct 31, 2015 at 7:26 AM, Robert Osfield <[email protected]>
wrote:

> Hi Glenn,
>
> On 30 October 2015 at 21:40, Glenn Waldron <[email protected]> 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, I get that, but since the node is created by a plugin, how do I
pick a RenderBin number that is guaranteed to be different? That is my
dilemma.

Glenn
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to