donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.37k stars 148 forks source link

Add ability to remove EXT_GPU_INSTANCING usage #1493

Open gkjohnson opened 3 weeks ago

gkjohnson commented 3 weeks ago

Is your feature request related to a problem? Please describe.

Right now you can convert a model to use EXT_GPU_INSTANCING instances using the instance command but this is not supported by a lot of engines (Unreal, other tools). It would be nice if it were possible to remove the extension usage in cases where you don't want it / can't use it.

Describe the solution you'd like

gltf-transform input.glb output.glb --min 10000000

Describe alternatives you've considered

Reading into the three.js editor and unpacking all instances manually.

Additional context

None

donmccurdy commented 3 weeks ago

I like the idea! This would involve:

I'm not immediately able to work on this, but PRs would be welcome.