Im trying to allow users to upload glb file and then display it in a three.js scene. However, this error keeps popping up: “THREE.GLTFLoader: Couldn’t load texture” “blob:https://cdpn.io/3e9a4c4e-00c9-42ff-b21a-81f9e229aed7”
I’ve tried uploading the same glb file on other glb/gltf viewers online, and they work fine. What seems to be the problem here?
It’s possible the texture is compressed. To make a robust GLTF loader, you will need to augment the loader with DRACO support, Meshopt support, and KTX2 texture compression support. Check out these links: