recastnavigation / recastnavigation

Industry-standard navigation-mesh toolset for games

Home Page:http://recastnav.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Triangles looks strange.

sherlockxie opened this issue · comments

image
When I tried to use detailTriangles in tiles to show the navMesh render zone,it looks strange with lots of small triangle in the specific part,is that normal?

Even though I used a regular plane consist by lots of square to bake navmesh,the rendered detailMesh shows that triangle still no rule in my sight.
image

Hi! Can you provide more context or an obj to repro the issue here? It's really hard to tell from your images what's happening.

In general Recasts' triangulation system favors the largest triangles possible, so you may see it generate large triangles in large areas and smaller triangles in fine details around obstacles.