Why does my navmesh create small, independent clusters?

I have a dungeon that’s randomly generated. But the (dynamic) navmesh generation only creates small clusters:

I tried messing around with the navmesh generation settings but nothing fixed this. The models use per-poly colision. It’s definately not a problem with the models, as it works on each of the few models but not on each of the many actors.

Is there any way to fix this?

Hi DasMatze,

It’s hard to tell from the screenshot. Are all of the areas without the NavMesh at the same height as the rest?

Hi!

Yes, they are and they line up perfectly:

14961-123.jpg

The wooden boards on the ground have no collision.

Could you also post a screenshot of your NavMesh volume in the editor and the settings?

Sure!
The navmesh bounds volume is in the center of the map (where the platform is) and has extents of 20000 units in each direction:

14966-123.jpg

And these are the settings:

14968-456.jpg

Lower cell size.

As I mentioned in the first post, I messed around with the settings before. Not even decreasing the cell size to 1 fixes it.

But thanks for the suggestion!

I’m wondering if it might be because of how narrow the hallways are.

If you haven’t yet, try lowering the Agent Radius. This will reduce the amount of space between the NavMesh and the walls.

I tried that. No luck. What else I tried is putting down the sections of the dungeon by hand. That works as intended.

So the problem is somewhere in my dungeon generation process. There I noticed the navmesh doesn’'t appear to update when “set static mesh” is executed. Even when I rebuild the navigation afterwards via the right console command.

I solved it by automatically moving all my meshes a tiny bit and then back to the original location once the dungeon generation process is done - that updates the navmeshes which didn’t update when static mesh components were changed or added.

I’m glad you got it working. I was playing around with this and you may also get the same results if you move the Navmesh Volume.