Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom navmesh baking option to NavigationRegion3D #11601

Open
TypeOverride opened this issue Jan 18, 2025 · 1 comment
Open

Add custom navmesh baking option to NavigationRegion3D #11601

TypeOverride opened this issue Jan 18, 2025 · 1 comment

Comments

@TypeOverride
Copy link

TypeOverride commented Jan 18, 2025

Describe the project you are working on

Environment Navigation Mesh

Describe the problem or limitation you are having in your project

The Navmash baking has no option for custom navmeshes to generate. No mode like "Custom" or "Solid" at Sampling on "NavigationRegion3D".

Navigation-Links are not what I am looking for. I want to create in Blender custom Navmeshes as meshes (each for every environment part)
and then bake them into one, inside Godot.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

It is simple to use, and fits well with "source geometry mode" like looking for "navigation_mesh_source_group"-tags and baking them in the way needed.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

I have implemented this before for Godot 3:

Image
godotengine/godot#30190

If this enhancement will not be used often, can it be worked around with a few lines of script?

Yes, no. Not tested it, but for sure you can create a merged Navmesh in some way, and add it to the "NavigationRegion3D" via code.
Also there is the Blender suffix -navmesh. But it creates a NavigationRegion3D node. Also you can't export a Navmesh in Godot when going over .blend file import settings. Maybe also a thing.

Is there a reason why this should be core and not an add-on in the asset library?

The reason is because it would be super simple to setup all in a node structure. Give it the group name "navigation_mesh_source_group", and even objects with a mesh as navmesh could be baked into one big static navmesh. So it can all be seperated blend files.

@Calinou Calinou changed the title Custom navmesh baking at the NavigationRegion3D in editor Add custom navmesh baking option to NavigationRegion3D Jan 18, 2025
@CarpenterBlue
Copy link

I think you can use the post-import script to extract the navmesh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants