Hi Sanat,
Are there any examples in the source that show how to only render the bottom left
viewport on the second "monitor" (basically a generic example for selective
rendering) or any suggested reading ?
See the osgcompositeviewer example.
In general, a CompositeViewer has a list of Views, each View has a
master Camera, and each camera (can) have a GraphicsContext. In your
current case, your three views have the same GraphicsContext, so they
render to the same window.
You can do what you want a few different ways.
If you want your master monitor and the remote monitor to always render
the views in fullscreen mode (not windowed), then you could simply set
up a single GraphicsContext across both screens (see
osgViewer::View::setUpViewAcrossAllScreens()), set up your three current
views' Viewports to map to the part of the GraphicsContext that's
visible on the first monitor, and map a new, fourth View's viewport to
map to the part of the GraphicsContext that's visible on the second
(remote) monitor.
If it's possible that you will want either the local or the remote
monitors to display the graphics in a window, then you can keep the
local part the same way you have now (a GraphicsContext that has the
renders three Views you have now), and set up a separate GraphicsContext
on the other monitor (see osgViewer::View::setUpViewOnSingleScreen()).
Then you would have a fourth View, whose Camera would have this
GraphicsConext.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org