Sorry for the wrong way of posting thread guys. 
Sent from BlackBerry® on Airtel

-----Original Message-----
From: Robert Osfield <[email protected]>
Date: Wed, 12 May 2010 16:13:40 
To: <[email protected]>; OpenSceneGraph 
Users<[email protected]>
Subject: Re: [osg-users] Stereo basic question

Hi Rj,

Could you please not do a "reply to" on post and then modify the
subject as it doesn't remove all the original threading information
from the mail header so some mail tools will thread it within the
orignal thread.  The way to post a new thread is using a new post and
send it [email protected] directly.


Robert.

On Wed, May 12, 2010 at 3:43 PM,  <[email protected]> wrote:
> Graphics gurus,
>
> Why do we need 120 hz for stereo rendering for visual simulation applications 
> ?
>
> Cheers
> Rj
> ------Original Message------
> From: Olivier Martinaud
> Sender: [email protected]
> To: [email protected]
> ReplyTo: [email protected]
> Subject: [osg-users] problem with osgUtil::IntersectVisitor 
> andosg::LineSegment
> Sent: May 12, 2010 7:02 PM
>
> Hi,
>
> I'm having some trouble implementing an intersection detection method. I have 
> a model of a building and I'd like to get the coordinates of the intersection 
> points between the model and a ray. I wrote the following code from osg 
> samples online.
>
>        osg::LineSegment  *ls = new 
> osg::LineSegment(osg::Vec3d(-5,-5,-5),osg::Vec3d(5,5,5));
>        osgUtil::IntersectVisitor *iv = new osgUtil::IntersectVisitor();
>        iv->addLineSegment(ls);
>        iv->apply(*m_node);
>        std::cout << iv->getNumHits(ls) << " intersection points (hits)." << 
> std::endl; //result = 6
>        osgUtil::IntersectVisitor::HitList& hitlist = iv->getHitList(ls);
>        std::cout << "size : " << hitlist.size() << std::endl;
>        //std::vector<osgUtil::Hit>::iterator itr = hitlist.begin();
>        hitlist[0].getWorldIntersectPoint(); //causes unhandled exception...
>
>
> When I execute the code I have this error : unhandled exception at 0x100042aa 
> in OSGDefaultProject.exe : 0xC0000005: access violation when reading 
> 0xfeeeff36.
> The problem comes from the last line of the  code 
> (getWorldIntersectionPoint()). What's weird is that the iv finds 6 points of 
> intersection, so the algorithm seems to work fine. But the size of my hitlist 
> is abnormally large : it says more than 4 billion !
>
>
> Thank you!
>
> Cheers,
> Olivier
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=27798#27798
>
>
>
>
>
>_______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
> Sent from BlackBerry® on Airtel
>_______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to