Hi Tommy,

Sharing a single window between multiple views is demonstated in the
osgcompositeviewer example - you simply assign the same GraphicsWindow
to the Camera's in each of the Views.   You change views you can stop
the viewer threads and then add/remove views you need then restart the
threading, this will drop a few frames though due to stopping/start of
threads.  The other way is to switch off the rendering of the view by
setting its Camera's NodeMask to 0x0 to disable it.

Robert.

On Sun, Nov 16, 2008 at 12:27 AM, Tommy Persson <[EMAIL PROTECTED]> wrote:
>
> I would like to have one Window (with possibility to use more) and be
> able to switch between different "views". One shoud be a trackball
> manipulator. And there is also a set of NodeTrackerManipulators wich
> follows different helicopters.
>
> I tried to do this with just Viewer but had trouble to remember the
> state of the NodeTrackerManipulators and the TrackballManipulators. So
> I thought the CompositeViewer was the right approach but I cannot find
> how to use it with one Window and switching between views.
>
> So am I on the wrong track or have I just missed som dokumentation or
> code example? What I am looking for is an example of how to set up
> CompositeView using one Window (using Glut) and creating a set of
> views with different camera maipulators.
>
>
> --
> /Tommy Persson
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to