Re: [osg-users] Height of terrain

2017-03-03 Thread shayne.tueller


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 4G LTE smartphone

 Original message 
From: Sebastian Messerschmidt <sebastian.messerschm...@gmx.de> 
Date: 3/3/17  5:28 AM  (GMT-07:00) 
To: osg-users@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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Height of terrain

2017-03-03 Thread Sebastian Messerschmidt

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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Height of terrain

2017-03-03 Thread Bhanu Chandra
Hi,
In above expression height is double. Sorry for the mistake
... 

Thank you!

Cheers,
Bhanu

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70401#70401





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Height of terrain

2017-03-03 Thread Bhanu Chandra
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Height of terrain

2017-03-03 Thread Robert Osfield
On 3 March 2017 at 07:56, Bhanu Chandra  wrote:
> How can i get height of the terrain on a given x/y vlaue. My terrain is flat 
> database(EPSG:3857).

osgSim::HeightAboveTerrain might fit the bill
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Height of terrain

2017-03-02 Thread Bhanu Chandra
Hi,
How can i get height of the terrain on a given x/y vlaue. My terrain is flat 
database(EPSG:3857).
... 

Thank you!

Cheers,
Bhanu

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70398#70398





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Height Above Terrain for PagedLOD node converted from Proxy node

2008-07-03 Thread Kiff Loh

Hi,
 
Is there any chance of querying the height of this terrain with OSG 1.2? 
 
OSG 1.2 doesn't have this osgSim::HeightAboveTerrain class. 
 
Kiff
 
 Message: 5 Date: Wed, 2 Jul 2008 11:41:38 +0100 From: Robert Osfield 
 [EMAIL PROTECTED] Subject: Re: [osg-users] Height Above Terrain for 
 PagedLOD node converted from Proxy node To: OpenSceneGraph Users 
 osg-users@lists.openscenegraph.org Message-ID: [EMAIL PROTECTED] 
 Content-Type: text/plain; charset=ISO-8859-1  2008/7/2 Kiff Loh [EMAIL 
 PROTECTED]:  Hi,   I've just converted some OpenFlight files to Paged 
 ive by replacing the  Proxy nodes to PagedLOD nodes in the master flight, 
 thanks to Brian Hill.  Can anyone advise me on how do I do a terrain height 
 query with this new  pagedLOD database?  osgSim::HeightAboveTerrain.   
 --
_
Get your free suite of Windows Live services today!
http://www.get.live.com/wl/all___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Height Above Terrain for PagedLOD node converted from Proxy node

2008-07-03 Thread Robert Osfield
On Thu, Jul 3, 2008 at 10:38 AM, Kiff Loh [EMAIL PROTECTED] wrote:
 Hi,

 Is there any chance of querying the height of this terrain with OSG 1.2?

 OSG 1.2 doesn't have this osgSim::HeightAboveTerrain class.

You can use osgUItil::IntersectVisitor in 1.2, but it doesn't
automatically load paged tiles in the way the HeightAboveTerrain
supports.

In the end though perhaps it's just time to upgrade...
HeightAboveTerrain is just one many many improvements over 1.2.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Height Above Terrain for PagedLOD node converted from Proxy node

2008-07-02 Thread Kiff Loh

Hi,
 
I've just converted some OpenFlight files to Paged ive by replacing the Proxy 
nodes to PagedLOD nodes in the master flight, thanks to Brian Hill. Can anyone 
advise me on how do I do a terrain height query with this new pagedLOD 
database? 
 
Kiff
_
Help Splitzo Sally Before It’s Too Late! 
http://www.thegirlwhosplitinto5.com/___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Height Above Terrain for PagedLOD node converted from Proxy node

2008-07-02 Thread Robert Osfield
2008/7/2 Kiff Loh [EMAIL PROTECTED]:
 Hi,

 I've just converted some OpenFlight files to Paged ive by replacing the
 Proxy nodes to PagedLOD nodes in the master flight, thanks to Brian Hill.
 Can anyone advise me on how do I do a terrain height query with this new
 pagedLOD database?

osgSim::HeightAboveTerrain.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org