Hello Per,

Now I am trying to hide an object (using a osg::Switch) in one channel and show it in the others.

What I normally do to get this effect is add the object directly as a child of the camera(s) where you want to see the object, but not as child of the others.

This doesn't solve your problem, but gives you another way of getting the effect you want. I think you were on a bad track trying to change an osg::Switch in a camera's pre-draw callback.

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

Reply via email to