[osg-users] problem with picking/intersecting in window space

Andreas Mueller andiadb at gmx.de
Mon Jul 2 00:35:29 PDT 2018


I found the cause of my problem:
I overlooked that I'm using a second camera (with it's own computed znear/zfar values) in my scene graph. Though the intersector is working with the main camera (and it's znear / zfar values, that are different from those if the second camera).
To work around this problem, I do the intersection in world coordinates with the world eye coordinate as starting point.

Cheers,
Andreas

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







More information about the osg-users mailing list