The HUD issue shouldn't require modifying the scene graph at all. Create one HUD scene graph with the entire HUD in it. Parent it to two HUD cameras with two different views. One Camera has its view matrix set to view the left half of the HUD, and the other is similarly configured to view the right half.
(I guess if you are not lighting, you could do this in the projection matrix and get the same results. But conceptually this is a view matrix issue, and the projections are the same.) Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Roland Smeenk Sent: Thursday, April 23, 2009 3:09 PM To: [email protected] Subject: Re: [osg-users] Modifying SG based on viewpoint location Related to this question I have two cases where I want to do something similar. 1. HUD across multiple slave views I have a view that uses multiple slave camera's with a projection offset (or viewmatrix offset). Simply adding a HUD camera like in the osghud example will result in two similar HUDs on both views. I want to offset the projection matrix in the osg::Camera based on the offset of top level camera in the view. 2. Projected grid with multiple views For rendering of sea we use the projected grid method, where a regular screenspace grid is projected onto a plane based on the camera projection matrix. When using multiple views each view should update the grid projection based on the current camera projection and view matrix. Any suggestions? kind regards Roland Smeenk ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10760#10760 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

