BabylonJS / Babylon.js

Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
http://www.babylonjs.com
Apache License 2.0
23.06k stars 3.41k forks source link

.glTF Export Instanced Meshes as Nodes Pointing to the Same Mesh #14056

Open FrameBuffer4096 opened 1 year ago

FrameBuffer4096 commented 1 year ago

Overview: When importing .glTF files, Babylon.js creates instanced meshes when two nodes point to the same mesh however, the opposite does not happen in the exporter which may result in reduced performance of scenes loaded into Babylon.js and subsequently exported due to the exported file no longer having nodes pointing to the same mesh.

Solution Sought: I would like to see Babylon.js .glTF export instanced meshes as nodes pointing to the same mesh.

Discussion: Forum Reference

gabrieljbaker commented 7 months ago

this would be awesome!

github-actions[bot] commented 6 months ago

This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale".

zylkowski commented 4 months ago

Any progress on this? All thin instances I try to export to .glb become just empty nodes.

sebavan commented 4 months ago

cc @bghgary

Jeggery commented 2 weeks ago

Are you making progress?

bghgary commented 2 weeks ago

I have a local branch that overhauls the code to make this happen, but this won't be done for a while as it's a large change.