Navmesh has cracks in uneven landscape

Hello,

I’ve got holes in the navmesh, mostly when bounds meet with each other. These holes prevent the AI from traversing there. I have tried changing many settings and nothing has helped so far. :frowning: Sculpting the landscape helps a bit but doesn’t fully fix it. I would be very glad if someone could help me with this!

My cell sizes are: low → 40, default → 20, high ->10

Tile Size UU is 1600. I have “fixed tile pool size” unchecked.

If by bounds you mean separate Nav Mesh Bounds Volumes, I’d overlap them by a bit more than the agent radius or replace them with one big volume, the navmesh gets trimmed along the edge of a volume and two volumes that only touch can leave exactly that kind of strip. If it’s at tile borders inside a single volume, lowering Cell Height and raising Agent Max Step Height a little is what I’d try next on uneven landscape.

I agree with nalbantgokmen. From your screenshots, the cracks line up with the edges of the yellow volumes, which shows the navmesh is clipped at each volume’s edge, and the walkable area also gets pulled back from those edges by the agent’s radius. When two volumes only touch, that leaves a thin strip on each side of the seam, and the AI can’t cross it, getting stuck there. So overlapping them by more than the agent radius, or replacing them with a single volume, should fix the problem.

Another thing to consider, if any of those yellow volumes change the navmesh resolution in that area (like a Nav Mesh Resolution Modifier), that can cause cracks too. Since you’re using different cell sizes (40, 20 and 10), the tiles on each side of the border don’t line up their edges. To check it, set the same resolution on both sides, rebuild, and see if the crack disappears.

After any changes, remember to go to Build > Build Paths, and press P in the viewport to check the results. And for further details on improving navmesh, please check the optimization guide:

I do not have different navmeshes. Its one navmesh placed in a relatively small landscape. Landscape has hills and such so it’s uneven, but not with a large amount (its a desert landscape). I meant the cracks appear at the tile bounds edges. And yes I have modifiers with different resolution, but setting it the same resolution doesn’t remove the cracks. And even removing all the modifiers will only remove 1-2 cracks but not all. Of course I need the modifiers though.

It is very frustrating, been dealing with this for more than 3 months now. Tried changing the values, replacing the navmesh and much more. And apparently it’s not just me having this issue: Navmesh cracks in irregular geometry such as hills all issues I find are unresolved :frowning: There is not even any plugins for custom navmesh. Dont even understand why cant i just paint over it or sth…

Hello again!

Thanks for the follow-up, and sorry to hear about those 3 months, it has to be quite frustating. Checking further across the community, I found a bug report related to this problem, UE-352459, which describes gaps between a NavMesh’s tiles, that prevent AI from crossing them. From the related links, there are two workarounds to try:

  • Try changing Region Partitioning and Layer Partitioning from Watershed to Monotone or Chunky Monotone, then rebuild the NavMesh

  • Test placing a Nav Modifier Volume over the affected area, using class NavArea_Default

If those don’t resolve the problem, there are a few more methods I would try:

  • Lower the value for Cell Height to improve precision, reducing potential gaps

  • Further increase the Tile Size UU (you are already on 1600, try up to 3200)

  • Adjust Agent Max Step Height just a bit, so AIs can consider certain height differences as traversable

As a last resort, you can also use a Nav Link Proxy to connect the disconnected areas. It won’t fix the NavMesh gaps, but it can provide a temporal solution for pathfinding.

For more details on further changing your navmesh, please check the related doc:

The issue you linked is also unresolved unfortunately.

I did try again to change the values you mentioned, changing to monotone is the only thing which closes some of the holes but there are still too many remaining. Placing navlink proxy to make NPCs jump all over the place is not a solution.