GLTF: Support MultiMesh objects using EXT_mesh_gpu_instancing#112866
Draft
aaronfranke wants to merge 2 commits intogodotengine:masterfrom
Draft
GLTF: Support MultiMesh objects using EXT_mesh_gpu_instancing#112866aaronfranke wants to merge 2 commits intogodotengine:masterfrom
EXT_mesh_gpu_instancing#112866aaronfranke wants to merge 2 commits intogodotengine:masterfrom
Conversation
5efa1a8 to
0e790eb
Compare
EXT_mesh_gpu_instancing
Member
|
Adding multimesh support to godot engine gltf is a good idea. Need to pick a time to review. Other reviewers are welcome too. |
082cc45 to
4287e0b
Compare
fire
reviewed
Nov 21, 2025
fire
reviewed
Nov 21, 2025
This was referenced Nov 26, 2025
4287e0b to
b6325a3
Compare
Member
Author
b6325a3 to
3e4a2e1
Compare
553d2f4 to
3a96db6
Compare
Member
|
Seems to be blocked on #113247 |
3a96db6 to
8003d6e
Compare
8003d6e to
844d9b8
Compare
844d9b8 to
1d213bc
Compare
1d213bc to
ff90da3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes issue #109280, supersedes PR #107866.
Draft because this depends on PR #113202, PR #113206, PR #113245, and PR #113247.
This PR adds support for importing glTF
EXT_mesh_gpu_instancingnodes as Godot MultiMesh nodes:In master, this extension was not supported, which meant that such objects were not imported as multiple instances.
This PR also adds support for exporting MultiMesh nodes as glTF
EXT_mesh_gpu_instancing, and configuring the export behavior. Users can choose to use the extension, use plain glTF nodes, or use both:Note that the dropdown only appears when the scene contains at least one MultiMeshInstance3D node, so it won't clutter the export settings UI in most cases where the user does not have any such nodes in their scene.
The options have the following behavior:
EXT_mesh_gpu_instancingextension. The extension is marked as not required, so implementations without support can still load the file, but they will see a single mesh instead of multiple instances of meshes.EXT_mesh_gpu_instancingextension. The extension is marked as required, so implementations without support cannot load the file.EXT_mesh_gpu_instancingextension and multiple nodes, allowing it to be imported as a MultiMesh when supported, or imported as nodes when not supported.Here's what it looks like when loading a glTF exported with "Multiple Nodes Fallback" into Godot 4.5-stable:
This PR also makes several related changes:
SceneImportSettingsDialog::_fill_sceneto handle MultiMeshInstance3D nodes._export_configure_for_sceneto GLTFDocumentExtension, allowing extensions to be configured before the export process starts, so that they can customize what properties are shown.ImporterMesh::from_mesh.