[osg-users] How to change "field of view"(FOV), distance.

Maxim Senin ok23senya at yahoo.com
Mon Aug 7 06:37:38 PDT 2017


Hi,
How to change "field of view"(FOV) and distance?
I used :
... 

Thank you!

Cheers,
Maxim
Code:
osg::CameraView* cameraview = new osg::CameraView();
cameraview->addChild(group);
cameraview->setFieldOfView(120.0f);
osgViewer::Viewer viewer;
viewer.setSceneData(cameraview);



but it's not work. Help me please.

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







More information about the osg-users mailing list