Hi Mat,

I was about to recommend trying option 1 as it's the most lightweight
approach.

Option 2 is fine too, but requires stopping any viewer threads that are
running, changing the views/added removed and then restarting any viewer
threads.

Robert.


On 2 September 2013 16:10, Mat Mayer <[email protected]
> wrote:

> Hi,
>
> Ok, I found two ways to do it.
>
> 1. set the clear mask for the several views to ( 0 )
>    view->getCamera()->setClearMask(0);
>
>   and use cull mask to show or hide the view.
>
> 2. use the addView and removeView function of the compositeViewer and also
> add and remove the graphicsContext of the view.
>
> seems like bougth are working. Is there a reason why I should use idea 1.
> or 2. ?
>
> Thank you!
>
> Cheers,
> Mat
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=56070#56070
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to