KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.5k stars 319 forks source link

GN export includes base mesh #2309

Closed marksteward closed 3 months ago

marksteward commented 3 months ago

Describe the bug When exporting an object that uses the new Geometry Nodes functionality, the base mesh is exported as well as the output from the modifier.

To Reproduce Export glTF GN base mesh bug.zip as glTF using the saved settings.

Alternatively:

  1. Create a new .blend file, and add the the following GN tree to the default cube. Note that the Group Input geometry is not sent to the output:

image

  1. Export as glTF with "Geometry Nodes Instances (Experimental)" ticked.

It exports a cube and a sphere, when it should only export the sphere.

Version

julienduroure commented 3 months ago

Hello, Thanks for the report. I don't think there is any bug here. The Geometry Node not only create some instances, but this is also a modifier. If initial geometry is modified by the node tree, you have to enable "Apply Modifier" option to get it. Closing this ticket

image