Hi J-S -- Would a custom cull callback help? You could decide per-View whether you are culled or not.

Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466



Jean-Sébastien Guay wrote:
Hi all,

I was wondering if someone could suggest a good way to add nodes so they are visible only in one view. I can't use node masks for this.

Up until now, the way I did it was to add the nodes right under the view's camera. Since the subgraph that forms my scene is another subgraph under that camera, and that subgraph is shared by all views, that is visible in all views, but whatever is child of only one view's camera is only visible in that view.

The problem with this is that update callbacks are not run on the root cameras, but are run on the viewer's Scene object (which is the scene subgraph given to setSceneData() ) only. So any update callbacks I have on the objects I added right under the view's camera will never be run.

So, do I have other options?

One usage example I can give is, in a modeling application, if we have cameras in the scene, we need to be able to see those cameras. But we shouldn't see the camera we're currently viewing through, or else we'll be "inside" the camera model. And the application can have multiple viewports, so a different set of cameras need to be visible for each view.

Thanks in advance,

J-S
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to