I'm still not clear on what you're trying to accomplish. I thought you were
trying to get HOT for a given lat/lon pair. In this case, there's only one
intersection. From your last post, it sounds like you're tying find
intersections with the terrain for a given LOS between two points. Is this
Hi Shayne,
S2LR wrote:
A couple of questions so that I have a clear understanding...
1) Why would you want to have the lower LODs available for doing collision
tests? You always want the highest LOD for doing intersection tests with the
terrain.
I am trying to compute two functions.
Thanks for your help,
It is working but performance is too bad. Terrain elevation completed in 20 ms.
I will use this calculation five or six times in every simulation loop. Do you
have any suggestions?
Regards.
--
Read this topic online here:
Hi Shayne,
Now, my code runs faster. But I have another problem :(. I am calling terrain
elevation computation in my simulation loop and Osg loop will not used in my
application. I understand that Osg does not read whole terrain tiles/pages when
I call osgDB::readNodeFile, And the the results
On the performance issue, you need to leverage the database cache feature for
LOS and HAT. Take a look at the osgintersection example to see how this is
done for los and hat. Using the computeHeightAboveTerrain method is sort
of an immediate mode for HAT queries which isn't the best for
Hi everyone,
I am trying to calculate height value of the terrain on a given latitude and
longitude. I am using a ive formatted terrain model that was converted using
osgDem from Dted level-1 data. I searched a solution on whole osg forum and web
but i could not find good one. Also I looked
The methods provided in osgSim work for geocentric databases. Is your
terrain built as a geocentric database?
If so, you can get the HAT/HOT with this...
earth-convertLatLongHeightToXYZ(osg::DegreesToRadians(lat),
osg::DegreesToRadians(lon), alt, X,Y,Z);
hat =
Hi Zeki,
On 18 April 2013 16:05, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
shayne.tuel...@hill.af.mil wrote:
The methods provided in osgSim work for geocentric databases. Is your
terrain built as a geocentric database?
If so, you can get the HAT/HOT with this...
Thank you for your answers.
Yes, I am using geocentric database. My input values are only latitude and
longitude. I don't have altitude information. So result of the
computeHeightAboveTerrain function conversion is not enough for
computeHeightAboveTerrain. I need to find terrain elevation only
If you want HOT (height of terrain) for a particular lat/lon, use the same code
as above and do the following...
Code:
maxElevationInDatabase = 3962.0; // meters
earth-convertLatLongHeightToXYZ(osg::DegreesToRadians(lat),
osg::DegreesToRadians(lon), maxElevationInDatabase, X,Y,Z);
hat =
10 matches
Mail list logo