[osg-users] How to change "field of view"(FOV), distance.
Johny Canes
psijsma at gmail.com
Fri Aug 18 03:28:38 PDT 2017
Hi,
Code:
double fovy, aspectRatio, zNear, zFar;
_camera->getProjectionMatrix().getPerspective(fovy, aspectRatio, zNear, zFar);
double aspect = (double)scrw / (double)scrh;
_camera->getProjectionMatrix().makePerspective(45, aspect, zNear, zFar);
Thank you!
Cheers,
Johny
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71447#71447
More information about the osg-users
mailing list