Hi,
I got a point (x,y) in a Slave camera image, and i want to know it's position
in world coords, so i use computeIntersections(), my code:
osgUtil::LineSegmentIntersector::Intersections intersections;
if( !view->computeIntersections(camera.get(),
osgUtil::Intersector::WINDOW, x, y, intersections) )
return false;
const osgUtil::LineSegmentIntersector::Intersection& hit =
*(intersections.begin());
out_intersect_point = hit.getWorldIntersectPoint();
But computeIntersections() often return false, what's wrong?
Thank you!
Cheers,
Ran
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65034#65034
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org