Re: [osg-users] Erratic intersections with long line segments

2009-04-20 Thread David Karlsson
, Gordon Skickat: den 15 april 2009 15:51 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Erratic intersections with long line segments Thanks Marcin That's sort of what I was thinking that it had to be rounding, our tiles are localized so YX are relatively small but the Z could be any value range

Re: [osg-users] Erratic intersections with long line segments

2009-04-20 Thread Robert Osfield
2009/4/20 David Karlsson david.karls...@foi.se Hi, We also created a version with doubles for the project that I'm working on. (The reason for this was that we needed to calculate the derivative of a geocentric terrain given a lat/long coordinate.) It would be convenient for us if this

Re: [osg-users] Erratic intersections with long line segments

2009-04-15 Thread Marcin Prus
Hi Gordon, we had similar problem here. We were standing exactly at the edge of 2 adjacent triangles in large terrain database and osgUtil::LineSegmentIntersector failed because of internal floating precision. Using doubles instead of floats inside osgUtil::LineSegmentIntersector solved our

Re: [osg-users] Erratic intersections with long line segments

2009-04-15 Thread Tomlinson, Gordon
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Marcin Prus Sent: Wednesday, April 15, 2009 4:01 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Erratic intersections with long line segments Hi Gordon, we had similar problem here. We were standing

[osg-users] Erratic intersections with long line segments

2009-04-14 Thread Tomlinson, Gordon
HI All I posting this for one of my folks who's is having some erratic results when using a long vertical line segment and the standard osgUtil::LineSegmentIntersector Basically when he sets a line segment up with end X,Y, 100 and start X,Y, -100 , occasionally we fail to get a hit