camera->setNodeMask(0)
and
camera->setNodeMask(0xFFFFFFFF) might work.

On Fri, Apr 17, 2009 at 4:26 PM, Konkle, Daniel T AMRDEC/Dynetics <
daniel.kon...@us.army.mil> wrote:

> Classification:  UNCLASSIFIED
> Caveats: NONE
>
> I need to turn a camera on and off.
> Use it and not use it.
>
> I've look through the docs and can't find the settings.
> The only thing I've found is an old reference to Producer Camera
> which of course didn't work.
>
> Is there a way to turn a camera on and off?
>
> thanks in advance,
> Danny
>
> The reference I found is below:
>
> http://www.3drealtimesimulation.com/osg/osg_faq_2.htm
> How can I dynamically turn a Camera On or Offb
>
>
>      It is very straight forward to turn a Camera On or Off firest you
> ned to get a pointer to your camera
>
>      e.g. Producer::Camera *camera = getPointerToMyCamera();
>
>      then to turn the camera On call camera->enable();
>
>      else to turn the camera Off call camera->disable();
>
>
> Classification:  UNCLASSIFIED
> Caveats: NONE
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Cheers,
Yun
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to