On 2/13/07, I-Gualano, Luciano <[EMAIL PROTECTED]> wrote:
Hi,

I have created a earth database using osgdem and bluemarble data. I'm
trying to insert some objects are ground level.
Some questions on how to calculate the ground height are:

1. What is the easiest way to get the tile at a specific lat/lon
coordinate (highest level)?

There isn't an convenient way, paged databases are all different, and
there isn't any high level indexing system which in lat/lon based.

You'll need to do set a psuedo cull traversal that homes in on the
lat/lon of interest.  The new osgSim::HeightAboveTerrain class might
be of help here, at least as a guide.


2. Once I have the tile, how do you get the MatrixTransform above each
tile?

Use the NodePath or the parents list.

3. To get the height need to intersect (IntersectVisitor) in local
coordinates of the terrain below the tiles matrix transform, correct?

osgSim::HieghtAboveTerrain :)

Any example source code illustrating this would be appreciated.

osgintersection is the closest you'll get.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to