Hi Per, This might be too simple a solution, but have you tried assigning nodemasks to the objects in question along with the appropriate nodemask for the various cameras? The "osgstereoimage" example shows how this works.
Hope this helps, -- Dan > -----Original Message----- > From: Jean-Sébastien Guay [mailto:jean-sebastien.g...@cm-labs.com] > Sent: Thursday, February 26, 2009 7:13 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] Flicker in osgviewer, multiple channels > > 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