[osg-users] LineSegmentIntersector doesn't give accurate Coordinates

Jochen Schwitzer fasoldma63759 at th-nuernberg.de
Thu Jun 21 03:12:20 PDT 2018


I am trying to get the local coordinates of my mouse in a 2D scene, when the mouse is clicked.

I draw a transparent terrain and use the LineSegmentIntersector with the Mouse Coordinates to get the LocalIntersectionPoint and draw this point then. 

However, when I click, the point is always at some place else. Always relative to the mouse position but the distance varies when I zoom in or out.

Can anybody help me? What am I missing?

Thank you!


Read this topic online here:

More information about the osg-users mailing list