R159: Parse .gltf from zip is not working in threejs editor

When i’m trying to open zip with .gltf it is not working. Here is an example of zip (can’t upload zip here due to size). Download source of example Yellow Plaster 3d model. Free download. | Creazilla
Steps to reproduce:

  1. Download zip with .gltf
  2. Select zip and Dragndrop to editor area
    Actual result:

    While debugging, here is code part that is handling zip and should parse it:


    As you can see, there are few formats is parsing by GLTFLoader (.glb, .gltf). In case with of zip with .glb it is working fine. Here is example zip with .glb
    duck.zip (96.8 KB)
    Steps to reproduce:
  3. Download zip with .glb
  4. Select zip and Dragndrop to editor area
    Actual result:
1 Like

Thanks for testing! Indeed, we need an additional fix for zipped .glTF files as well: Editor: Fix loading zip files with `.glTF`. by Mugen87 · Pull Request #27337 · mrdoob/three.js · GitHub

1 Like

Thanks for handling issue.

PS: One more tiny thing, in case of glb zip the colors are not applied as well (should be like on screenshot).

Showcase :eyes::flashlight: