[osg-users] Hiding a node from a single view

2012-03-13 Thread Don Katyl
Hi, I have a scene with a number of 3D models and I need to be able to view the scene from the point of view of one of the models. When I view the scene from one of the models, I'd like to hide that model from view so it doesn't block the view. I'm using Switch nodes to enable/disable the

Re: [osg-users] Hiding a node from a single view

2012-03-13 Thread Chris Hanson
Nodemasks can be set on the Nodes, and each view can have a unique nodemask. The bitwise AND of the two must be non-zero for a Node to display in a view. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene

Re: [osg-users] Hiding a node from a single view

2012-03-13 Thread Jean-Sébastien Guay
Hi Don, What is the best way to accomplish this? Node masks, cull callbacks? Chris's solution will work fine, but you may have many objects you want to control independently and then you'll run out of bits in your node mask. If that's the case, a cull callback can be another way to do it.