Cannot bake navigation region for default terrabrush terrain
Closed this issue · 5 comments
Attempting to generate bake navmesh fails/ crashes for default terrabrush terrain.
Steps to reproduce:
- Create a new node3d scene
- Add
NavigationRegion3D
- Add
NavigationMesh
to nav region - Save (so that terrabrush can generate "Data Path"
- Add
TerraBrush
node to nav region - Select TerraBrush node -> Add terrain via "CreateTerrain" button
- Select nav region node -> Click "Bake NavigationMesh" button in the top of scene viewport
- See that Godot fails to bake navigation, and crashes.
Crash message:
WARNING: NavigationMesh baking process will likely fail.
Source geometry is suspiciously big for the current Cell Size and Cell Height in the NavMesh Resource bake settings.
If baking does not fail, the resulting NavigationMesh will create serious pathfinding performance issues.
It is advised to increase Cell Size and/or Cell Height in the NavMesh Resource bake settings or reduce the size / scale of the source geometry.
Extra info:
terrabrush version: version="0.7.0-alpha"
godot version: v4.2.1.stable.mono.official
A note:
Just thought I'd mention that this is a wonderful project and more than appreciate the work you're doing :)
Related to
It may be that we should not expect to bake navigation for terrain, I'm just not sure what the workflow should be.
However, the resulting navmesh extends much further than the terrain that's generated.
This problem disappears for me if I set "Parsed Geometry Type" to "Static Colliders" in the Navigation Mesh.
Thanks for the research in this issue so far!
@spimort @saintrider It looks like that has done the trick! Thank you :)