Hi Johannes, You should set up the projection matrix appropriate for the original viewport dimensions that you set it up for, and subsequent resizes after that will have the appropriate aspect ratios.
Robert. On 5/31/07, Johannes Brunen <[EMAIL PROTECTED]> wrote:
Hi Robert, after some experimentations I found that the distortion has its origin in the rectangle of the embedding window. If I create the window with aspect ratio 1, then the distortion is gone. On the other side, when I create the window with an aspect ratio unequal to 1 and create the viewport with aspect ratio 1 then I have also no distortion of the scene, but the view only uses part of my window client area. Additionally, if I create the window with aspect ratio 1 and resize it afterwards, I do not get any distortions. Do I have to initialize the camera with the aspect ratio of the viewport? Johannes _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/