Dear All,
I'm having a hard time getting the correct results for the mouse position in 
world coordinates.The problem is: retrived world mouse position is not even 
close to those when I hoover over an object so I couldn't find any correlation 
between to which vertex of object is mouse close to. 
To obtain the world mouse position I use world_mouse = 
screen_mouse*inverse(MVPW), for obtaining the vertex position I use 
LineSegmentIntersector >> getWorldIntersectionPoint() and there is absolutey 
not any coherent value that I can find any relation. My aim was to snap the 
mouse to the closest vertex in object, but produced results are as follow. 
 world coords vertex(6.97538 20.55 18.7482" local coords vertex(0.876922 
-3.74963 4"Mouse Position -101.794 44.6545 -130.128"
Your help will be appreciated,                                    
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to