Paul Martz wrote:
> You could use a CompositeViewer with multiple views, for example, one
> rendering the scene graph from root node A and one rendering from root
> node C. You could also write a NodeVisitor that uses the
> TRAVERSE_PARENTS traversal mode. So there are many cases where it's
> meaningful and useful in OSG to have multiple root nodes.
>
> Ultimately, the question I'd direct back to you is: what are you
> trying to do, and why do you think that multiple root nodes would help?
>

I'm modeling some industrial equipment. Each "component" is stored in
its own geode and the geodes are connected together by MatrixTransform
nodes. The components are all connected to each other, and spatially,
some components are siblings to each other and others are connected in a
parent-child relationship. It just turns out that there isn't a single
"root" component in the most obvious arrangement.

I can reorder things and then I do get a singly rooted graph, but it
isn't quite as natural.

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

Reply via email to