Hi Paul, osgUtil::IntersectVisitor is deprecated. osgUtil::IntersectionVisitor coupled with LineSegmentIntersector is more flexible and has the support for using KdTree to improve performance significantly - you'll need to enable the build of KdTree's in the DatabasePager to use them. This topic has been discussed several times so have a look through the archives.
osgSim::HeightAboveTerrain provides a simpler interface ontop of IntersectionVisitor and also adds support for automatically loaded high levels of details. The loaded is done synchronously though so if the intersection traversal it does needs to load external tiles it will take significantly longer to do the query. There is a cache of tiles to help reduce this cost on subsequent queries. The osgintersection example provides code that illustrates the various intersection routines in action. Robert. On Fri, Sep 3, 2010 at 6:06 AM, Paul Pocock <[email protected]> wrote: > Hi - Whats the best way to get the z down intersect point onto a paged > database. I'm getting what looks like loss of precision errors. I am not > sure if it is because I am using  osgUtil::IntersectVisitor (Which I > believe is deprecated?) or my lack of knowledge of > osgSim::HeightAboveTerrain. Is it my proper understanding that I provide > two points x,y,z (beginning and end) for HAT? Even doing this gives some > very strange results... Is there a very basic example out there to > achieve this? Is it a trivial problem? > > Regards > Paul > > > > IMPORTANT: This email remains the property of the Department of Defence and > is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you > have received this email in error, you are requested to contact the sender > and delete the email. > _______________________________________________ > 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

