Hi,
thanks guys!!! Task resolved!
...
Thank you!
Cheers,
Maxim
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71490#71490
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi Arfaa,
here is my implementation:
Code:
bool ViewerWidget::setMainCameraFieldOfView(double iFov)
{
osg::Camera* camera = mainView()->getCamera();
double fovy, aspectRatio, zNear, zFar;
bool result = camera->getProjectionMatrixAsPerspective(fovy, aspectRatio,
zNear, zFar);
if (true
Hi,
Code:
double fovy, aspectRatio, zNear, zFar;
_camera->getProjectionMatrix().getPerspective(fovy,
aspectRatio, zNear, zFar);
double aspect = (double)scrw / (double)scrh;
3 matches
Mail list logo