[Bleeding] Totally Confused: Terrain Map and Collision

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. :shock:

I still don't know the root cause that makes them different.
Betajaen, do you have a idea? :o

BTW: I used Flour to convert image to xhf format.

betajaen

26-04-2008 18:26:41

Honestly. I don't know why. In my head, it seemed to work.

I'm contracting all my efforts this week on serialization for '22 which may be released next Saturday. After that, I will work on flour to correctly load in the heightfields and use NxOgre with different terrain systems to get behavior it uses, create some fixes and publish my findings.

Please keep bugging me about this after '22. ;)