FriedChicken
26-04-2008 13:04:06
The problem of mismatch between terrain mesh and the terrain collision confused me weeks, until tomorrow I became to know the trick behind it.
In order to correctly match the terrain collision model with graphical mesh, I have to rotate the heightfield image 90 degrees clockwise and flip it horizontally. Then I will get expected result.
But for other images, which are the same size as previous one, but usually have lower complexity in height, I don't need to rotate it to get correct result.
I still don't know the root cause that makes them different.
Betajaen, do you have a idea?
BTW: I used Flour to convert image to xhf format.
In order to correctly match the terrain collision model with graphical mesh, I have to rotate the heightfield image 90 degrees clockwise and flip it horizontally. Then I will get expected result.
But for other images, which are the same size as previous one, but usually have lower complexity in height, I don't need to rotate it to get correct result.
I still don't know the root cause that makes them different.
Betajaen, do you have a idea?
BTW: I used Flour to convert image to xhf format.