-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Expected positive integer for width but received 0 of type number
when running optimize
#1500
Comments
Seems that
I don't think this is technically a valid file per spec, but agree that glTF Transform should be able to ignore unknown texture types safely, and will look into fixing that! |
Thank you! I opened a similar issue for gltf.report as well by the way, which logs that same error message regarding the color model. |
Currently in glTF-Transform/packages/functions/src/texture-compress.ts Lines 172 to 174 in 0bf0ecb
Similar for |
Hm, there are a few issues:
I support fixing (3); glTF Transform should be able to process glTF files containing .ktx2 textures that don't use or conform to I'd be happy to accept a PR for (3), or to try an implementation if we have a .gltf sample containing an ASTC .ktx2 texture without these other issues. But in the meantime, I may leave this open at lower priority. Marking this as "enhancement" since the required changes would involve adding more checks and logic for previously unsupported types of KTX2 data. |
Closing for now, not sure this is actionable, but happy to revisit later. |
Describe the bug
The attached model causes an error during
gltf-transform optimize
.My understanding is that the textures use non-standard ASTC6x6 which is understood by three.js, but maybe not yet in gltf-transform.
To Reproduce
Steps to reproduce the behavior:
gltf-transform optimize d9836c94f70dcebf0bc6.glb d9836c94f70dcebf0bc6.opt.glb
Expected behavior
Can be optimized and/or meshopt compressed
Versions:
4.0.8
Additional context
The model is non-standard in some ways, see https://x.com/hybridherbst/status/1833281592351166901 for a bit of a breakdown
The text was updated successfully, but these errors were encountered: