# Material colors not transferred from Blender

**URL:** <https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954>\
**Category:** Bugs\
**Tags:** blender, material\
**Created:** [December 27, 2020, 1:29am UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954 "2020-12-27T01:29:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bikeman868](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bikeman868/32/11616_2.png) [@Bikeman868](https://forum.babylonjs.com/u/Bikeman868)\
**Post date:** [December 27, 2020, 1:29am UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/1 "2020-12-27T01:29:07Z")

</div>

My colors are a mess and I decided to fix them by

1. Changing colors in the Inspector to something I like
2. Copy/paste the Hex values from Inspector to Blender
3. Re-export the scene as a .babylon file.

Surprisingly the colors come out with completely different values when I look at them again in the inspector.

What I originally chose in the Inspector:  
Diffuse - 38388B  
Emissive - 677CB4

After typing these into the ‘Principled BSDF’ shader as Base Color and Emission, this is what got exported in the .babylon file:  
`"diffuse":[0.1215,0.3259,0.8]`  
Note that there is was no emissive color exported

What showed up in the Inspector next time around:  
Diffuse: 0A0A41  
Emissive: 000000

---

<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:** [December 27, 2020, 11:08am UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/2 "2020-12-27T11:08:04Z")

</div>

This is probably because you use pbr material and you would input colors in gamma space on some channels so it is not the color used by the material. You should use the scene recorder feature in the inspector: [Applying Delta Changes To A Scene | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/scene/deltaFiles)

---

<div class="post-metadata">

**Author:** ![Bikeman868](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bikeman868/32/11616_2.png) [@Bikeman868](https://forum.babylonjs.com/u/Bikeman868)\
**Post date:** [December 28, 2020, 8:31pm UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/3 "2020-12-28T20:31:13Z")

</div>

I am not using PBR materials, I have the PBR option turned off in the Blender Babylon exporter.

---

<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:** [December 28, 2020, 8:32pm UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/4 "2020-12-28T20:32:59Z")

</div>

this sounds strange, could you share a repro ?

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [December 29, 2020, 12:36am UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/5 "2020-12-29T00:36:39Z")

</div>

There is no emmissive on principled node. Check the mapping png on repo for how to work in emmissive.

---

<div class="post-metadata">

**Author:** ![Bikeman868](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bikeman868/32/11616_2.png) [@Bikeman868](https://forum.babylonjs.com/u/Bikeman868)\
**Post date:** [December 29, 2020, 12:39am UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/6 "2020-12-29T00:39:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/9cac874adaddd8b319c0063a7017f13773c8ba25.png)

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [December 29, 2020, 2:25pm UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/7 "2020-12-29T14:25:37Z")

</div>

This is not Blender 2.83 LTS. See [Blender exporter development](https://forum.babylonjs.com/t/blender-exporter-development/17003)

---

<div class="post-metadata">

**Author:** ![Bikeman868](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bikeman868/32/11616_2.png) [@Bikeman868](https://forum.babylonjs.com/u/Bikeman868)\
**Post date:** [December 29, 2020, 8:57pm UTC](https://forum.babylonjs.com/t/material-colors-not-transferred-from-blender/16954/8 "2020-12-29T20:57:46Z")

</div>

No problem, I just set the emissive color in my Javascript after loading the model - which works great.  
Thanks for writing the exporter, I think this is the best workflow available with Blender/Babylon.
