donmccurdy / donmccurdy/glTF-Transform
pattern / filter option for more Transforms in the scripting API
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 206
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 16
Description
Hey,
First off, thanks a ton for this library 🙏
I hope this isn't a duplicate, or something that's in fact super easy to do, that I just missed from the docs. My apologies in that case.
**Is your feature request related to a problem? Please describe.**
So I'm looking to apply certain operations on only certain parts of the GLTF. In my case I have extra collider meshes created in Blender that are part of the GLTF hierarchy. While I'm applying mesh related transforms (e.g. meshoptimizer) to the main mesh, I need the colliders to stay untouched (because they're not going to be rendered and performing these operations on them seems to lead to problems on the physics side at runtime).
**Describe the solution you'd like**
This [`ktx2()`](https://github.com/gz65555/ktx2-encoder?tab=readme-ov-file#for-gltf-transform) Transform has the option to provide a `pattern` that the name needs to match. This proves to be exceptionally useful, so I was wondering if it's possible to do something similar for other Transforms, like `simplify` or `reorder`.
Best wishes
Contributor guide
Research direction
Start by comparing the ktx2() Transform's documented pattern option with the simplify and reorder Transforms mentioned in the issue. Determine which additional Transforms should support matching by name, and consider the collider-mesh example as the acceptance case: matching meshes are transformed while excluded colliders remain untouched.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100