Hi Igor, Take a look at this website :
http://old.uvr.gist.ac.kr/wlee/web/techReports/ar/Camera%20Models.html you can find how to compute the projection matrix parameters of an opengl camera (fovy and aspect ratio) out of a real camera intrinsic parameters (focal lengths and focal point). Mourad On Thu, Dec 9, 2010 at 10:54 AM, Igor Galochkin <[email protected]> wrote: > Hi, > > Just to understand how setProjectionMatrix works, say, I need to set > X-Focal length of viewer's camera to 1000 and Y-Focal length to 600. > Also i need the Camera to be translated by x by 0.5 to the right and y by > 0.7 down. > What matrix m should i pass to viewer.getCamera()->setProjection(m) to > achieve that? Or should I use some other function? > > > ... > > Thank you! > > Cheers, > Igor > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=34656#34656 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

