Question About Recast Graph Generation (Not Understanding Result)

UPDATE:
-I have tried using RecastMeshObj scripts to stop the creation of nav mesh area on top of the obstructions, however if these objects have any type of collider on them, it seems to invalidate the RecastMeshObj script (setting a object to “unwalkable surface” gets ignored). I suppose you could:

  1. Create duplicates of every object and use one set for nav mesh creation (then turn them off) and leave the second set in as actual geometry
  2. Choose not to rasterize colliders (but that may not be possible depending on how your scene is setup).
  3. Turn all colliders on applicable objects off, build the nav mesh, then turn them back on (best so far, but possibly quite time consuming).

However that still doesn’t solve the problem of nav mesh area being created inside the obstructions. I’ve tried:

  1. Turning “Walkable Height” to very high values (which can work), but I suppose if you have any tunnels/overhangs that could cause significant problems.
  2. Using Relevant Graph Surface, however that only seems to work when not using any tiles (as soon as you do start using tiles, RGS setups get ignored).

Hello everyone,

I’ve worked with Recast Graphs before but have never seen the result I’m getting now. If you look at the picture, I’ve got 3 different sized cubes (meant to be obstructions on the nav mesh), 1 of which functions as I would expect, and then 2 that are not working as I would anticipate. I’ve separated the 2 issues below:

  1. Walkable area on top of the larger cubes:
    -I’ve never seen this happen before and I’m concerned that it may cause ‘impossible’ destinations to get calculated for agents.

  2. Large cubes are not invalidating area inside themselves:
    -Even more problematic is that the cubes are not invaliding the space inside themselves and are instead creating new separate regions inside themselves (I moved the cubes a bit so you can see this in the picture). I don’t believe I’ve ever seen this before, and I don’t have a good explanation as to why this is happening.

Any insight into what is going on is appreciated, thank you for reading.