BUG found in terrain.getHeight(x,z)

No replies
Offline
Joined: 11/23/2013

Hello!

 

While using a png image file (1024x1024) as a heightmap I get some height values that are wrong when using terrain.getHeight(x, z) function.   It works most of the time but I noticed then for some specific values of x and z the function returns zero instead of the height of that particular point. The terrain is rendered properly with the correct heights everywhere according to the heightmap.

 

Some values that don't work: 

 

z = -64 

from x= -128 to x = -64

 

the whole line of z=-192

 

That is all I tested I hope this helps.