NavMesh has to be recreated after loading a scene

Hey!

I’m using the Agent SDG in 4.5 to let some people move around in a scene with a NavMesh. This works great, but I have to bake the NavMesh every time I open the scene. Otherwise, the path planning will simply fail.

Any ideas why this is the case?

If you have the navmesh cache setting enabled, it should persist.
However, if you changed the USD, saved it, and re-opened it, it will need to be re-baked.

1 Like

ok. Do you know why it’s implemented this way? I can change the USD, save the scene and restart the simulation with the ‘old’ nav-mesh (that’s the normal workflow). But if I change the USD, save it and re-open the file, I have to rebake it.

This is a bit inconsistent in my opinion. The only difference in both cases is if the scene was closed and re-opened, which does not change anything in the scene itself.

So why can’t the NavMesh survive the reloading of the scene from file?