Re: [osg-users] Orphographic Camera View?

2009-04-26 Thread Michael Bosse'
You need to take into account the aspect ratio of the display format, I believe, if i understand what you are asking.. It is only necessary to make war with five things: with the maladies of the body, with the ignorances of the mind, with the passions of the body, with the seditions of the city,

Re: [osg-users] Orphographic Camera View?

2009-04-25 Thread Paul
Thanks, i did do a search through the source, but i spelled it wrong. Thanks again. lol -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10865#10865 ___ osg-users mailing list

Re: [osg-users] Orphographic Camera View?

2009-04-25 Thread Paul
Im using the following code for orthographic projection: Code: // set the projection matrix camera-setProjectionMatrix(osg::Matrix::ortho(-2.0, 2.0, -2.0, 2.0, 0.0, 1.0)); // set the view matrix camera-setReferenceFrame(osg::Transform::ABSOLUTE_RF);