If your database is in geocentric coordinates, a z value of zero puts you at 
the equator somewhere...most likely where there is no terrain data. 
Make sure your geocentric coordinates are correct for where you have terrain 
data.


Sent via the Samsung Galaxy S® 5 ACTIVE™, an AT&T 4G LTE smartphone

-------- Original message --------
From: Sebastian Messerschmidt <[email protected]> 
Date: 3/3/17  5:28 AM  (GMT-07:00) 
To: [email protected] 
Subject: Re: [osg-users] Height of terrain 

Hi Bhanu,

We surely cannot help you without the data you use.
But try to use a Z-Value that is actually _above_ the the terrain might 
help.

Cheers
Sebastian

> Hi,
> I tried with following expression
> double X = 8489499, Y = 1115164, Z = 0;
> uble height = 
> sgSim::HeightAboveTerrain::computeHeightAboveTerrain(terrain.get(),osg::Vec3(X,
>  Y, Z));
>       I am getting  height  value as 0. Can any one help me.
> ...
>
> Thank you!
>
> Cheers,
> Bhanu
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70400#70400
>
>
>
>
>
> _______________________________________________
> 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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to