-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support writing Document containing multiple Buffers as GLB #1171
Comments
@Makio64 is this the error you're seeing?
Perhaps the error should be more specific here, but the problem is that this model has many (13) buffers. Normally that would mean 13 external In any case, GLB requires the buffers be combined, and that's easy to do. Use https://gltf-transform.dev/modules/functions/functions/unpartition |
The CLI does this automatically as well: glTF-Transform/packages/cli/src/session.ts Lines 79 to 81 in eaacc26
|
Thanks, yes the more specific message would have help, especially if it point to the unpartition. |
I think it's important that // (a)
io.write('out.gltf', document);
io.write('out.glb', document);
// (b)
io.write('out.glb', document);
io.write('out.gltf', document); Perhaps it wouldn't be too difficult, when writing to GLB, to ignore the buffer layout specified by the document without modifying the document. I'll mark this as a feature request if someone would like to look into that here: glTF-Transform/packages/core/src/io/writer.ts Lines 445 to 454 in eaacc26
This may affect implementation of Meshopt and Draco compression, in which case it could turn out to be simpler just to log a more specific warning. |
Describe the bug
On this particular model I cant convert the gltf to glb. but it works perfectly using the gltf-pipeline
It says there is no buffer but I dont understand whats wrong, works fine with other model i tested.
To Reproduce
here the model : https://www.dropbox.com/scl/fi/calx036yfn0h3qt9x67vw/camera_curve.gltf?rlkey=vltp12bbg7s021wmur0wa2kjp&dl=0
here my code for converting :
Expected behavior
Convert the model with no problem.
Versions:
The text was updated successfully, but these errors were encountered: