Re: [osg-users] Height of terrain

2017-03-03 Thread shayne.tueller
LTE smartphone Original message From: Sebastian Messerschmidt 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 tha

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::computeHeightAb

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.op

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

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.opensceneg

[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 ___ os