Hi Everyone, im having some trouble setting up a frustum view. i used the following code:
Code: viewer.getCamera()->setProjectionMatrixAsFrustum(-640, 640, -480, 480, 1900, 200000); and i queried the frustum with: Code: viewer.getCamera()->getProjectionMatrixAsFrustum(a, b, c, d, e, f); But im getting 1448.3 for all these values! Also, i placed an object at 0, 0, -1000 in world space, which is lesser that the near clip plane. But the object was still visible. im not able to understand why this is happening. Could anyone please explain what mistake im doing? Thanks, Mukund ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36277#36277 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org