[osg-users] Perspective Projection updateCamera does not work anymore

Bruno Oliveira bruno.manata.oliveira at gmail.com
Thu Sep 15 03:58:28 PDT 2016


I have a scene and I am using a Perspective Projection. I was using a Ortho
projection before.

Now, I am creating a new camera manipulator, in which I need to update the
camera zoom, and update the camera in that precise moment, in order to
check my scene for intersections of a ray from the mouse (in a way similar
to setCenterByMousePointerIntersection) . In Ortho mode, I used


But this does not work in Perspective projection mode?
I get successful scene intersections before I set the Camera's view matrix,
but after that line of code, intersecting
Is this the problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160915/6f3f60d8/attachment-0001.htm>

More information about the osg-users mailing list