[osg-users] switch between two camera

Lingyun Yu lingyun.yu.06 at gmail.com
Fri Mar 20 03:39:18 PDT 2009


Hi, Ben,

I use something like

            camera0->setNodeMask(0XFFFFFFFF);
            camera1->setNodeMask(0);

to enable camera0 but disable camera1.

I hope it helps.

Yun

On Fri, Mar 20, 2009 at 10:48 AM, Ben <ben.poulard at gmail.com> wrote:

> Hi,
> if I have understood , I must design my application with a CompositeViewer
> in order to use two scene, each in it's own view.
> I have a 3D classic view and a "map vue".
> How can I display only one at once using compositeviewer? (I don't see how
> to use nodemask)
>
> thank's
>
> ps: sorry to post beginners questions . [Rolling Eyes]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=8833#8833
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Cheers,
Yun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090320/da49d2c2/attachment-0003.htm>


More information about the osg-users mailing list