Hi osg-users, I'm having some troubles with setProjectionResizePolicy function. After resizing the window, I use the "getProjectionMatrixAsPerspective" function to display the fovY and the fovX (using the ratio, fovX = fovY * ratio).
When using HORIZONTAL policy the vertical field of view is preserved and the horizontal one is adjusted when resizing the viewport, so everything is OK. But when using the VERTICAL policy the horizontal field of view retrieved isn't preserved and is varying, the vertical field of view is updated. It seems to me, that there is maybe some precision error when computing the new projection matrix for VERTICAL policy... Does anybody already used the VERTICAL policy and face the same problem ? Kind regards, -- Alexandre AMALRIC Ingénieur R&D =================================== PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille http://www.pixxim.fr
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

