H Lars,

On Mon, Sep 26, 2011 at 9:16 AM, Lars Karlsson <[email protected]> wrote:
> Hi all, I have a scene graph containing a switch node (osg::Switch) having 4 
> children.
>
> What would be the best way to render this scene graph in 4 different 
> views/viewports, with each child (attached under the osg::Switch) rendered in 
> its own view? Thanks!

Is it just one subgraph within the whole subgraph that you want to
appear differently on each viewport or do you have four entirely
different subgraphs for each view?

If the former then the best way to handle this is to use a
TraversalMask on the Camera matched to a NodeMask's in the scene
graph, see osgstereoimage example, if the later use a
osgViewer::CompositeViewer see osgcompositeviewer.

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

Reply via email to