[osg-users] problem in changing view from perspective to orthographic

2010-05-31 Thread Nitin Rangari
hi all, i am trying to change Projection matrix from perspective to Orthographic i am not finding proper way to do that.. i am trying.. void GraphicsScene::makeOrtho() { osg::BoundingSphere bs = mRootNode-getBound(); double

Re: [osg-users] problem in changing view from perspective to orthographic

2010-05-31 Thread Robert Osfield
Hi Nitin, There isn't really any proper way to convert between orthographic and perspective projections, the two are essentially incompatible projections. You can try to make best mappings based the eye point, center of rotation and your field of view in perspective, which makes the scene look