[osg-users] camera standard frustum

2009-03-09 Thread Martin
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

Re: [osg-users] camera standard frustum

2009-03-09 Thread Robert Osfield
Hi Marttin, osg::Camera always has a projection and view matrix, you can't disable/remove them. osg::Camera stores the projection matrix as a 4x4 matrix, which you can get using Camera::getProjectionMatrix(). When you set the projection matrix using setProjectionMatrixAsFrustum(...) it does the

Re: [osg-users] camera standard frustum

2009-03-09 Thread Martin
Hello, I think it works now. It was my mistake. But the near plane is very small. Is it normal? Thanks Martin LittleG wrote: Hello, when i create a camera: osg::ref_ptr osg::Camera cam = new osg::Camera(); and I want to get the frustum parameters:

Re: [osg-users] camera standard frustum

2009-03-09 Thread Robert Osfield
On Mon, Mar 9, 2009 at 12:06 PM, Martin grosser.mar...@gmx.de wrote: Hello, I think it works now. It was my mistake. But the near plane is very small. Is it normal? By default the OSG will compute the near + far planes, during the cull traversal, to fit the depth range of the objects in the

Re: [osg-users] camera standard frustum

2009-03-09 Thread Tomlinson, Gordon
: [osg-users] camera standard frustum Hello, I think it works now. It was my mistake. But the near plane is very small. Is it normal? Thanks Martin LittleG wrote: Hello, when i create a camera: osg::ref_ptr osg::Camera cam = new osg::Camera(); and I want to get the frustum parameters