# \[DRACO\] GLTFLoader and multiple materials on single mesh with one UVmap

**URL:** https://discourse.threejs.org/t/draco-gltfloader-and-multiple-materials-on-single-mesh-with-one-uvmap/13188
**Category:** Questions
**Tags:** materials
**Created:** [March 1, 2020, 4:47pm UTC](https://discourse.threejs.org/t/draco-gltfloader-and-multiple-materials-on-single-mesh-with-one-uvmap/13188 "2020-03-01T16:47:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![qweqwe\_Flinstone](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/qweqwe_flinstone/32/6498_2.png) [@qweqwe\_Flinstone](https://discourse.threejs.org/u/qweqwe_Flinstone)
#### Post date: [March 1, 2020, 4:47pm UTC](https://discourse.threejs.org/t/draco-gltfloader-and-multiple-materials-on-single-mesh-with-one-uvmap/13188/1 "2020-03-01T16:47:51Z")

</div>

Is that supported? Im having problem with my glb objects.  
Im using:  
**threejs** 107dev,  
**blender** [ 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: 77d23b0bd76f, type: Release  
build date: 2020-02-13, 01:56:46]

So when I use GLTF with multiple materials im getting that error on all of my objects that use more than one material  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/1/14e6449785c604a71d44188c8d0010d6a8f66c24.png)  
Heres one of my objects with one and second one is with two materials to compare  
[whales.zip](https://discourse.threejs.org/uploads/short-url/epReWRFFTiCXzZLsKzjL2OAMhlX.zip) (100.3 KB)

---

<div class="post-metadata">

### Author: ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)
#### Post date: [March 1, 2020, 6:52pm UTC](https://discourse.threejs.org/t/draco-gltfloader-and-multiple-materials-on-single-mesh-with-one-uvmap/13188/2 "2020-03-01T18:52:00Z")

</div>

They both seem to work fine in [https://gltf-viewer.donmccurdy.com/](https://gltf-viewer.donmccurdy.com/)… do you get the same result with a recent version of three.js? I’m not sure what r107dev means, are you not using a stable release?

---

<div class="post-metadata">

### Author: ![qweqwe\_Flinstone](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/qweqwe_flinstone/32/6498_2.png) [@qweqwe\_Flinstone](https://discourse.threejs.org/u/qweqwe_Flinstone)
#### Post date: [March 1, 2020, 7:48pm UTC](https://discourse.threejs.org/t/draco-gltfloader-and-multiple-materials-on-single-mesh-with-one-uvmap/13188/3 "2020-03-01T19:48:29Z")

</div>

propably yes, becouse i had many problems with stable ones back when i started my project. I tried to go r114 but it seems that i need with that fix many other new errors :\ So it requires time to upgrade and god knows if there are any new problems with newer versions 😑  
Maybe its just becouse im unexperienced with js. Lets say im learning js thanks to threejs haha

Anyways… stupid question 😛

---

<div class="post-metadata">

### Author: ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)
#### Post date: [March 1, 2020, 7:50pm UTC](https://discourse.threejs.org/t/draco-gltfloader-and-multiple-materials-on-single-mesh-with-one-uvmap/13188/4 "2020-03-01T19:50:30Z")

</div>

I’m not sure. I don’t know of any reason that an off-release version around r107 wouldn’t work either. But I won’t be able to reproduce that without a demo, and I have no idea what to make of the error message. Also make sure that your GLTFLoader and DRACOLoader files are from the same versions of three.js.
