Currently I am simulating magnification by manipulating the projection matrix
like this:
Code:
left = nearClip * tan(atan(_left /_nearClip)/_magnification);
right = nearClip * tan(atan(_right /_nearClip)/_magnification);
top = nearClip * tan(atan(_top /_nearClip)/_magnification);
bottom = nearClip * tan(atan(_bottom/_nearClip)/_magnification);
_camera->setProjectionMatrixAsFrustum(left,right,bottom,top,nearClip,farClip);
I've been posed a question as to whether this method of magnification is
angular or linear. Does anyone know the answer to this question?
Cheers,
Steven
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59535#59535
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org