Good day, downloaded GLTF file from sketchfab.com is not loading, it gives an error.
I thought there was a bug in the file structure that something was wrong, but the resource https://sandbox.babylonjs.com/ opens it without problems.
You are wrong, the editor can load a list of files, and even in the archive, the only problem is that the pictures, if they are not at the root, will not be able to load, but this is easily corrected in the gltf file itself through a regular notepad.
You see, I just deleted the paths and moved the pictures to the root as I actually showed them in the view.
Are you sure it’s a GLTFLoader issue? First, the zip you linked does load in the gltf viewer. Second - according to the Network panel, the issue appears only because the paths in the editor are resolved relatively to the root domain (and not as blobs as it’s done in the gltf viewer):
When you are uploading these files to https://gltf-viewer.donmccurdy.com/ you get errors in the console? If yes, could you share a screenshot of how the Network tab in devtools looks (it should have a few blob: requests after you upload the files.)
And you are uploading the unmodified debug_gltf.zip from the first post to the gltf viewer (as either zip or separate files)?
(As for the three editor - it’s probably ok to assume for now it’s a bit bugged; the editor seems to try and fetch the files from the root domain, so it simply receives an invalid response instead of models / images.)