# Color of just one layer is wrong on Export to GLB

**URL:** <https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697>\
**Category:** Content creation (3dsMax, Maya, Blender, glTF)\
**Created:** [January 28, 2023, 4:54pm UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697 "2023-01-28T16:54:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigrig](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bigrig/32/5548_2.png) [@bigrig](https://forum.babylonjs.com/u/bigrig)\
**Post date:** [January 28, 2023, 4:54pm UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697/1 "2023-01-28T16:54:46Z")

</div>

Can’t for the life of me figure out why the color of this one layer doesn’t export correctly. The sand is sand color in blender, but black in GLB. Where every other layer is exporting correctly. Any ideas? Is there just some property i’m not checking in blender or something?

 ![Screenshot 2023-01-28 at 8.45.29 AM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/1/d1672ebecf5c91b03e9455da0916c284d700fd1e.jpeg)

 ![Screenshot 2023-01-28 at 8.40.34 AM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/9/b97db1ca9b9aa0fab0b5a157fafce117cdf703d2.jpeg)

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#UQIY3E%2318)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [January 28, 2023, 5:56pm UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697/2 "2023-01-28T17:56:01Z")

</div>

Are you putting it into emissive ? 🤔

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 28, 2023, 6:47pm UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697/3 "2023-01-28T18:47:18Z")

</div>

Your mesh is declared to use vertex colors but the colors are all black. If you disable vertex colors it’s ok:

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#UQIY3E%2319)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![bigrig](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bigrig/32/5548_2.png) [@bigrig](https://forum.babylonjs.com/u/bigrig)\
**Post date:** [January 28, 2023, 8:01pm UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697/4 "2023-01-28T20:01:01Z")

</div>

Thanks! Never would have guessed that.  
So - “useVertexColors” is set in Blender? When i look at the material settings in Blender it seems like it is using an image texture. There’s some other setting that over-rides that?

 ![Screenshot 2023-01-28 at 11.56.40 AM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/a/ca50472d612c807640dc9903151099752e17b3bb.jpeg)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 28, 2023, 9:40pm UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697/5 "2023-01-28T21:40:13Z")

</div>

I have no idea, I don’t know Blender at all, so I don’t know what triggers the export of the vertex colors in the .glb file…

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 30, 2023, 4:10pm UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697/6 "2023-01-30T16:10:07Z")

</div>

@PirateJC might know ???

---

<div class="post-metadata">

**Author:** ![RPaladin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rpaladin/32/27367_2.png) [@RPaladin](https://forum.babylonjs.com/u/RPaladin)\
**Post date:** [February 1, 2023, 1:16am UTC](https://forum.babylonjs.com/t/color-of-just-one-layer-is-wrong-on-export-to-glb/37697/7 "2023-02-01T01:16:24Z")

</div>

Hi. Blender stores and exports vertex colors (for formats that support them) via Mesh Color Attributes data-blocks. To visualize a color attribute in the 3D Viewport Editor, add a Color Attribute Shader Node to an object’s Shader Material.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/8/b8eaf486848d3bd245de9ed3e79144f02685b271.jpeg)

**NOTE:** Blender _doesn’t_ need a Color Attribute node to export vertex colors - it exports the Color Attributes data-blocks by default, not the nodes.

* * *

If you’d prefer to disable the default exporting of vertex colors, you can do so through the Blender glTF 2.0 export settings panel.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/a/da4c43ee9cbb2c3511d61c8c197999342492891a.png)
