[osg-users] mouse xyz -> object xyz

olesita tut olesitamail at yahoo.com
Thu Nov 12 11:13:14 PST 2009


Hello everybody,

I trying to write a simple application with osg to perform the following:
1. take user input, mouse click xy coordinate
2. find intersecting coordinate in the objects in the scene such as lines and points.

I can get mouse xy and using 
view->computeIntersections(mouseX, mouseY,intersections)
I can get intersections with sphere, cube and heightField but not with lines or points.

Any ideas what's going on?

Thank you!

osgtry

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







More information about the osg-users mailing list