Replies: 1 comment 5 replies
-
Hm, there shouldn't be a difference, I'd expect the same result as well. Possible to share an example file? Does the input use any glTF extensions? The CLI is running the prune() transform, wrapped in a couple steps defined by the CLI Perhaps another possibility is some kind of dual package hazard, if two copies of the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm writing a series of scripts for simplifying gltf models using a combination of the javascript library and cli tools. One thing I have generally seen is that even when removing meshes and geometry from the document the file is still fairly bloated. I'm not sure if this is due to empty node structures or remaining buffer data in the file but I've found that calling
gltf-transform prune ...
fixes the issue. Sometimes from 100+mb down to a few hundred kb in extreme cases (like removing all but 1 mesh a large hierarchy, etc).Rather than calling prune from the cli I'd prefer to call the prune() function using
document.transform
but the behavior seems to be significantly different. Here's what's happening:Is there something I'm doing wrong? Any settings the CLI is using that I'm not setting? I'd expect the two file sizes to be identical.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions