[osg-users] Height of terrain

shayne.tueller shayne.tueller at comcast.net
Fri Mar 3 07:28:22 PST 2017


    
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 <sebastian.messerschmidt at gmx.de> 
Date: 3/3/17  5:28 AM  (GMT-07:00) 
To: osg-users at lists.openscenegraph.org 
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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170303/8553e716/attachment-0003.htm>


More information about the osg-users mailing list