Hi List! I'm new to osg and currently trying to learn it. I'm using glut and have set up a simple sceneView containing two objects (a box and a loaded model) and a hud to display some text. The hud is set up like in the osghud example.
Everything displays fine until i turn the camara far enough to any side, so that the two objects wander off screen (i.e. 90deg to the right). When I turn the camara back, the objects won't be displayed anymore. When I tuck the Window border to issue a resize event, they reapear. The hud is visible all the time. Upon further inspection, I discovered that as soon as the objects leave the fov, the projection matrix gets screwed up. sceneView->getProjectionMatrixAsPerspective(fov, ratio, near, far); returns 0.0, 0.0, 0.0, 1.0 Now if I disable the hud by not adding it to the root node, the above won't happen. I also found that sceneView->setComputeNearFarMode( osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR ); removes the problem, though I don't know what that feature is for anyway. Now my Question (sorry for rambling): Is that behavior intended ? Or is it a bug in my program ? Or a bug in osg ? Thanks for your time __ Rud
pgpRrKwrfCk8l.pgp
Description: PGP signature
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
