The osgSim::HeightAboveTerrain class automatically handles paged
databases so use this rather than the lower level intersections
classes in osgUtil.

On Nov 10, 2007 2:54 AM, Mark Hurry <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> I'm trying to position 30 - 40 models on a large terrapage (.txp)  terrain
> database, approximately 300miles x 500miles.
>
>
>
> All the models are scattered around the terrain.  The terrain is obviously
> not present all at one go for me to get all the HAT values I need.
>
>
>
> What I have done is move to each model position and wait for the HAT test to
> return a valid result. However my problem is that I think I am probably
> picking up a low level LOD intersection, so that when I eventually go and
> view the positioned model it can sometimes float above, sink below, or sit
> on the terrain.
>
>
>
>
>
> The following is the a snippet of code that I am using
>
> isectVisitor.addLineSegment ( pTerrainIsect );
>
>
>
> pTerrainNode->accept ( isectVisitor );
>
>
>
> osgUtil::IntersectVisitor::HitList hitList = isectVisitor.getHitList(
> pTerrainIsect ) ;
>
>
>
>
>
> Is there someway of making sure that I pick up the highest LOD intersection,
> or someway of finding out if the highest LOD has been loaded before I do my
> intersection test?
>
>
>
> Also when the terrain is loaded from .txp into the scenegraph, is it
> positioned in the graph lowest LOD first, highest last, or is there no
> particular order?
>
>
>
> Any help would be much appreciated.
>
>
>
>
>
> Cheers
>
>
>
> Mark
>
>
>
>
> No virus found in this outgoing message.
>  Checked by AVG Free Edition.
>  Version: 7.5.503 / Virus Database: 269.15.26/1120 - Release Date: 09-Nov-07
> 9:26 AM
>
> _______________________________________________
> 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