Terrain mesh height larger than getHeight() value

trnrez

24-11-2009 23:07:04

I am creating a scene that uses a 129x129 height map and the problem I am getting is that when I go to place objects at a specific x,y value they are sometimes under the terrain. From what I can tell the value I am getting back from getHeight() is off compared to the mesh height at that point. I attached some screenshots to hopefully help with trying to explain the issue. If this isn't very clear please let me know and I will try to explain more.

trnrez

25-11-2009 17:16:06

Is there a way to get the height value of the terrain "mesh" instead of the value from the height map? I also tried messing with the tile and max lod values with createterrain(...) but it doesn't appear to have any effect on the mesh. Any nudge in a direction would be much appreciated. Thanks for your time.

li574000

30-12-2009 05:51:33

i met this problem too