Hi Andrew,

Do you mean multiple View's withing a CompositeViewer?  While it's
technically possible to add a osgViewer::Viewer to a CompositeViewer
since Viewer subclasses from View, it's not the intended usage - you
should use View's instead.

In terms of closing a View, does this View have it's own
GraphicsWindow(s)?  If not then just setting the View's Camera's
NodeMask to 0 will switch if off and set it to 0xffffffff to switch it
back on again.  If the View does have it's own GraphicsWindow then
you'll need to close the window and switch off the rendering via the
NodeMask - although I've never actually tried specifically this so
you'll be working on the bleeding edge.

The other approach is to simply removing the View from the
CompositeView and add back in a new one when you need it.  The
NodeMask route is lightest weight route though and is what I'd do if
it's possible.

Robert.



On Mon, Feb 14, 2011 at 4:11 AM, Andrew Kos <akos...@gmail.com> wrote:
> Hello,
>
> I am currently building an application that uses multiple viewers within a 
> composite viewer. Is there a way to make a viewer semi-transparent? Also, is 
> there a way to temporarily close/reopen a viewer?
>
> Thanks
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=36602#36602
>
>
>
>
>
> _______________________________________________
> 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