[osg-users] setProjectionMatrixAsPerspective changes eyepoint when camera is rotated

2015-10-22 Thread Mike Greene
Hi, I am trying to manually effect near and far clipping planes based on camera altitude in my app. Essentially, I do this: Camera()->getProjectionMatrixAsPerspective(_fov,_ratio,_near,_far); Then based on some criteria, I might change the near or far clip planes. _near = _nearNew; _far - _far

Re: [osg-users] setProjectionMatrixAsPerspective changes eyepoint when camera is rotated

2015-10-22 Thread Sebastian Messerschmidt
Hi Mike, Where and when are you updating the projection? Also you can hook into the near-far computation callback to modify the calculated values. Cheers Sebastian Hi, I am trying to manually effect near and far clipping planes based on camera altitude in my app. Essentially, I do this: Ca

Re: [osg-users] setProjectionMatrixAsPerspective changes eyepoint when camera is rotated

2015-10-22 Thread Mike Greene
In a post frame callback. ... Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=65412#65412 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscen