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.
And also please add the ability to rotate the image for the texture in the editor. In the code then we can make texture.flipY = false; but the editor does not have it.
I don’t think the three.js Editor lets you drag in a whole folder like that. You may need to pack it into a self-contained GLB using Blender, glTF-Pipeline, or glTF-Transform.
The editor cannot load multiple files at one time. You can report this as a feature request on the three.js github repository, but for now the only workaround is to combine the files into a .glb.
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):
Yes, I did upload both as a zip (not modified as you did in the video), and as separate files (also unmodified.) And both seem to work in the gltf viewer for me.
So the question still stands - whether it’s the GLTFLoader or the editor path resolution issue (unless I absolutely miss the point )
Now this is already interesting, but judging from your video, you have a Linux operating system, and I have Windows 7, the error is - Unssuporting file format (png).
And I can be wrong, but either with the encoding something is wrong, or with the file itself. But here https://sandbox.babylonjs.com/ there is no such problem, everything loaded fine here.
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.)