Re: [osg-users] PERSPECTIVE --FIELD OF VIEW
Hi, aspect is fovx/fovy, so you setup fovy as u need, and aspect as fovx / fovy. Cheers, Sergey -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35619#35619 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] PERSPECTIVE --FIELD OF VIEW
I'll clarify this a little more... fovX = fovY * Aspect Normally you want the Aspect (or aspect ratio) field of view to equal the aspect ratio of the viewport. Hope that helps Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35629#35629 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] PERSPECTIVE --FIELD OF VIEW
Hi, I have been looked the perspective projection.But,I dont understood some value in there.Pls help me...Can I change fovy with fovx.Is there a value like fovx.Can I change horizantol value of the fov(x) not fov (y).Other problem is Aspect that I could not understand exactly what it mean Thank you! Cheers, Sümeyra :' -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35585#35585 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] PERSPECTIVE --FIELD OF VIEW
May I suggest you look at how OpenGL sets up the projection matrix. This is what OSG uses. gluPerspective is the routine that uses fovy and aspect to set up the projection matrix; It may be more intuitive for you to use the setProjectionMatrixAsFrustum() method in OSG to establish the projection matrix. For example, you could set things up as follows given vertical and horizontal fovs... double left = tan(osg::DegreesToRad(fov_left)) * near; double right = tan(osg::DegreesToRad(fov_right)) * near; double bottom = tan(osg::DegreesToRad(fov_bot)) * near; double top = tan(osg::DegreesToRad(fov_top)) * near; view-getCamera()-setProjectionMatrixAsFrustum(left, right, bottom, top, near, far); where near and far are the frustum near and far clipping planes. -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Sümeyra Söyler Sent: Wednesday, January 12, 2011 8:36 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] PERSPECTIVE --FIELD OF VIEW Hi, I have been looked the perspective projection.But,I dont understood some value in there.Pls help me...Can I change fovy with fovx.Is there a value like fovx.Can I change horizantol value of the fov(x) not fov (y).Other problem is Aspect that I could not understand exactly what it mean Thank you! Cheers, Sümeyra :' -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35585#35585 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] PERSPECTIVE --FIELD OF VIEW
Hi, aspect is w/h, so you can get w if given aspect and h. jp On 12/01/11 17:36, Sümeyra Söyler wrote: Hi, I have been looked the perspective projection.But,I dont understood some value in there.Pls help me...Can I change fovy with fovx.Is there a value like fovx.Can I change horizantol value of the fov(x) not fov (y).Other problem is Aspect that I could not understand exactly what it mean Thank you! Cheers, Sümeyra :' -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35585#35585 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org