Hi all, after going deeper into this matter, I realized I can't use 
TraversalMasks, because I have just 32 bits at disposal... 

I namely have an arbitrary number N of osg::Switch nodes in my scenegraph, not 
just four (I simplified the question, so as to make it easier to understand to 
people).

And in general, I have M views (not just four) into this scenegraph as well. M 
in general <> N.

So basically, I have a number of switches, and an even greater number K of 
different paths realizable through these switches.

The point is, each of M views should be capable to display any of these K paths.

Any ideas or pointers as of how to architect this in OSG? Thank you.



--- On Mon, 9/26/11, Ulrich Hertlein <[email protected]> wrote:

> From: Ulrich Hertlein <[email protected]>
> Subject: Re: [osg-users] Switch node, and multiple views
> To: "OpenSceneGraph Users" <[email protected]>
> Date: Monday, September 26, 2011, 10:56 AM
> Hi Lars,
> 
> On 26/09/11 11:30 , Lars Karlsson wrote:
> > Yes, I'd like to render one single scenegraph, however
> four times DIFFERENTLY (i.e. in
> > four different views), and of course simultaneously.
> > ...
> > I looked quickly into TraversalMask... Is my hunch
> correct when I say that:>
> > - I make all four subgraphs (under Switch) active 
> > 
> > - I set their masks to 1, 2, 4, and 8 respectively
> > 
> > - I take cameras of each of the four views in
> CompositeViewer, and set their masks to 1, 2, 4 and 8
> respectively
> > 
> > - now the CULL traversals for all four views will cull
> respective subgraphs:
> > 
> > - CULL for view 1 culls subgraphs 2, 3, and 4
> > - CULL for view 2 culls subgraphs 1, 3, and 4
> > - CULL for view 3 culls subgraphs 1, 2, and 4
> > - CULL for view 4 culls subgraphs 1, 2, and 3
> > 
> > Am I on the right track? Thanks!
> 
> Yes, except instead of a Switch you would probably just use
> a Group for this, unless you
> want to disable/switch the subgraphs as well.
> 
> Cheers,
> /ulrich
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to