Closed zeux closed 4 years ago
Thanks @zeux for the report! I fixed this issue and fixed a bunch of other error handling issues too.
That's a nice looking model. Where is it from?
gltfpack always preserves asset metadata to be fair to the creators :) https://sketchfab.com/3d-models/ruby-rose-2270ee59d38e409491a76451f6c6ef80
The attached file contains several variants of a model, exported with gltfpack using KHR_image_basisu with KTX2 containers.
The "separate" version loads fine in Babylon JS using latest sandbox; this is the version with separate files. Both "embedded" (textures inside .bin) and glb (single file) versions fail to load with a 2 MB error message along the lines of
It would be nice to emit shorter error messages :) and also indicate the reason for the error. I'm reasonably sure that the file in question is correct, and it's a bug in Babylon.JS. Unsure what the problem is precisely, as the file header looks correct based on the error message (starts with "\xAB KTX 20"); maybe the MIME type isn't recognized correctly?
rubyrose.zip