Ok I made some progress, I now extract the Vertices and Triangles from an ADT-File.
When I now try to write an adt-File I get inappropriate results:
The Triangles, of course, are static.
The Vertices contain World-Coordinates, I have to make them relative to current chunck I guess?
Is there an easy way to do?
What to do next? I know I am missing WMO etc right now, but I want to do a navmesh with only the Terrain first.
I have to change the coords from WoW to Recast. No big deal.
Then I have to use Recast to generate a NavMesh. Is there an easy API? I somehow did not find a documentation of Recast+Detour.
I Only found a how-to what they want to implement in their wiki?
Also: What does the f stand for?
Ok using f with my GenerateTriangles and v for the Vertices I get:
It doesn't look quite right, although it's only one MCNK.
Also my GenerateTriangles can only handle one MCNK.
Any suggestions?