Martin
2009-03-09 11:47:46 UTC
Hello,
when i create a camera:
osg::ref_ptr< osg::Camera> cam = new osg::Camera();
and I want to get the frustum parameters:
cam->getProjectionMatrixAsFrustum(left,right,bottom,top,znear,zfar);
I dont't get the parameters. It seems that the camera hasn't a projection matrix. Where is the projection matrix define in this situation? When I set my own projection matrix with setProjectionMatrix( ... ) it works fine.
Cheers,
Martin
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8087#8087
when i create a camera:
osg::ref_ptr< osg::Camera> cam = new osg::Camera();
and I want to get the frustum parameters:
cam->getProjectionMatrixAsFrustum(left,right,bottom,top,znear,zfar);
I dont't get the parameters. It seems that the camera hasn't a projection matrix. Where is the projection matrix define in this situation? When I set my own projection matrix with setProjectionMatrix( ... ) it works fine.
Cheers,
Martin
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8087#8087