How can I make sure an object fits inside a camera view after loading a new 
scene. All the examples load scenes and Viewer/Camera at startup. I want to add 
nodes to an existing scene; not create a new one.My OSG tree looks like this:   
                            + File 1                               |            
 + Scene ----+ File 2             |                |             |              
  + File ...Root ----+                          |             + Grid            
 |             + Axis             |             + HUD Camera(Both Root and 
Scene are Switch groups, so I can selectively show/hide their children)The 
problem is that whenever I load a new file/node, it doesn't always show up on 
screen. My guess is that some objects are outside the view volume. I could 
write a simple function to update Scene's bounds and make sure they fall within 
the fustrum, but I'm sure there's an existing method to do this...- Nick -
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to