How can we load an .gltf file from a blob?

Good day . I gave downloaded model which contain scene.gltf, scene.bin and texture folder with textures.
How can I load it into threeJs Via ObjectBlobUrl, If I have already got blob urls of all my noted files.
Thank in advance

Could you explain further what you’ve tried so far? You’ll have an easier time of this if you pack the different files into a single binary, with http://glb-packer.glitch.me/ or glTF-Pipeline. Then you can just call loader.parse() with the ArrayBuffer and a couple other arguments.

If you need to use the multi-file version with Blob URLs, you’ll have to override URL requests. Example: https://github.com/donmccurdy/three-gltf-viewer/blob/master/src/viewer.js#L159-L191

4 Likes

Thank you very much , you saved my my life and time