Im using the following code for orthographic projection:

Code:

// set the projection matrix
    camera->setProjectionMatrix(osg::Matrix::ortho(-2.0, 2.0, -2.0, 2.0, 0.0, 
1.0));

    // set the view matrix    
    camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF);
    camera->setViewMatrix(osg::Matrix::identity());



When I resize the window I would like the scene to stretch and not resize, So 
if the window is twice as wide as it is high the i would like the scene to 
stretch twice as wide too. Any ideas?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10868#10868





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to