Thanks Cory, change now merged and submitted to svn/trunk.

On Thu, Mar 26, 2009 at 7:31 PM, Cory Riddell <[email protected]> wrote:

> The MFC based viewer needs to have the aspect ratio corrected. I asked
> about this on the users list and was told how to correct it. I added the
> following lines to the end of cOSG::InitCameraConfig():
>
> >     // Correct aspect ratio
> >     double fovy,aspectRatio,z1,z2;
> >
> >
> mViewer->getCamera()->getProjectionMatrixAsPerspective(fovy,aspectRatio,z1,z2);
> >     aspectRatio=double(traits->width)/double(traits->height);
> >
> >
> mViewer->getCamera()->setProjectionMatrixAsPerspective(fovy,aspectRatio,z1,z2);
>
> The full file is attached.
>
> Cory Riddell
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to