<div dir="ltr"><div><div>Hi Ran,<br><br></div>There isn't really any way for us to know what might be wrong as there are just too many details about what you are doing.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 September 2015 at 02:20, Ran Chao <span dir="ltr"><<a href="mailto:1530904175@qq.com" target="_blank">1530904175@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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:<br>
<br>
        osgUtil::LineSegmentIntersector::Intersections intersections;<br>
        if( !view->computeIntersections(camera.get(), osgUtil::Intersector::WINDOW, x, y, intersections) )<br>
                return false;<br>
<br>
        const osgUtil::LineSegmentIntersector::Intersection& hit = *(intersections.begin());<br>
<br>
        out_intersect_point = hit.getWorldIntersectPoint();<br>
<br>
But computeIntersections() often return false, what's wrong?<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Ran<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=65034#65034" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=65034#65034</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>