Hi, I recently changed from just setting up a viewer
Code: viewer->setUpViewInWindow(500,300,1280,720,1); To making a custom camera, but I can't seem to get the same 'normal' view as I did in the default viewer camera. I use: osg::ref_ptr<osg::Camera> camera = new osg::Camera(); camera->setViewport(new osg::Viewport(0,0,screenWidth,screenHeight)); camera->setProjectionMatrixAsPerspective(30.0, 1.0, 0.5, 1000); but I get a streched out view in the horizonal direction, as if a 1:1 image is streched onto a 16:9. I tried looking into the code for viewer and viewerbase, and view, but it was getting a little too much. Hopefully someone has a good idea on what the default setup is and why I'm getting a streched out view. Thank you! Cheers, Bram ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=54190#54190 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

