Hi Gianni, On 18 October 2013 10:34, Gianni Ambrosio <[email protected]> wrote:
> Hi Robert, > there's just one thing I don't like of this approach: the viewer is the > driver. In my application I have one scene and I attach the root node to > the viewer at startup. Then every model (xml) I load builds its own osg > sub-graph and is attached to the scene. So that code doesn't need to know > anything of the viewer. > There is no reason why you couldn't do this with a CompositeViewer. If you wanted just a single scene graph then the NodeMask/TraversalMask combination can be used to make sure each view gets to see what parts of the scene graph are of interest to it. See the osgstereoimage example for an illustration of using node masks/traversal masks (just change the traversal masks to CullMask for your purposes.) Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

