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

**URL:** <https://discourse.threejs.org/t/r159-parse-gltf-from-zip-is-not-working-in-threejs-editor/58983>\
**Category:** Showcase\
**Tags:** gltf-loader, editor\
**Created:** [December 7, 2023, 3:18pm UTC](https://discourse.threejs.org/t/r159-parse-gltf-from-zip-is-not-working-in-threejs-editor/58983 "2023-12-07T15:18:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadMax888](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/madmax888/32/40837_2.png) [@MadMax888](https://discourse.threejs.org/u/MadMax888)\
**Post date:** [December 7, 2023, 3:18pm UTC](https://discourse.threejs.org/t/r159-parse-gltf-from-zip-is-not-working-in-threejs-editor/58983/1 "2023-12-07T15:18:03Z")

</div>

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](https://creazilla.com/nodes/7832752-yellow-plaster-3d-model)  
Steps to reproduce:

1. Download zip with .gltf
2. Select zip and Dragndrop to editor area  
Actual result:  
 ![Screenshot 2023-12-07 at 15.31.44](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/0/c/0cba261af5fefbe9ea44b950dcc9e8327ebf0b2e.jpeg)  
While debugging, here is code part that is handling zip and should parse it:  
 ![Screenshot 2023-12-07 at 15.35.05](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/2/6/262e145aa4f78a5db7847753c99d9fe61b9b1116.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/a/3/a3f77ca890b7e6c41ce06810e83f6fa69303e77c.jpeg)  
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](https://discourse.threejs.org/uploads/short-url/nJr4N6uhoHCuuJQsjSAWQRy4g4G.zip) (96.8 KB)  
Steps to reproduce:
3. Download zip with .glb
4. Select zip and Dragndrop to editor area  
Actual result:  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/3/83197416111d80e90e5ff483abf6b9067a79780a.png)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [December 7, 2023, 3:26pm UTC](https://discourse.threejs.org/t/r159-parse-gltf-from-zip-is-not-working-in-threejs-editor/58983/2 "2023-12-07T15:26:06Z")

</div>

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](https://github.com/mrdoob/three.js/pull/27337)

---

<div class="post-metadata">

**Author:** ![MadMax888](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/madmax888/32/40837_2.png) [@MadMax888](https://discourse.threejs.org/u/MadMax888)\
**Post date:** [December 7, 2023, 3:42pm UTC](https://discourse.threejs.org/t/r159-parse-gltf-from-zip-is-not-working-in-threejs-editor/58983/3 "2023-12-07T15:42:17Z")

</div>

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).

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/7/677c8acac21179e68a64ef48ebe61ee2b19d2480.jpeg)

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [December 7, 2023, 3:42pm UTC](https://discourse.threejs.org/t/r159-parse-gltf-from-zip-is-not-working-in-threejs-editor/58983/4 "2023-12-07T15:42:59Z")

</div>

#Showcase 👀🔦
