[osg-users] Rendering in traversal order - how?
Glenn Waldron
gwaldron at gmail.com
Sat Oct 31 05:32:12 PDT 2015
On Sat, Oct 31, 2015 at 7:26 AM, Robert Osfield <robert.osfield at gmail.com>
wrote:
> 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, 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151031/34903119/attachment-0003.htm>
More information about the osg-users
mailing list