# Issues exporting materials for an object from Blender to .babylon file

**URL:** <https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046>\
**Category:** Questions\
**Tags:** material\
**Created:** [March 1, 2022, 5:06pm UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046 "2022-03-01T17:06:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![James1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/james1/32/20679_2.png) [@James1](https://forum.babylonjs.com/u/James1)\
**Post date:** [March 1, 2022, 5:06pm UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/1 "2022-03-01T17:06:46Z")

</div>

Hi all,

I’m having issues with one object for some reason out of the 600 that have exported fine. None of the materials are exporting to a babylon file. Could someone please help please

> **[bridge blender.blend](https://www.dropbox.com/s/pjwtei5kyb8orv7/bridge%20blender.blend?dl=0)**
>
> Shared with Dropbox

sandbox view in babylonjs

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/b/0b8ca1509da79ba3cd4848a290318195f0fc8a48.png)

correct view in blender  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/4/e4ce54c0f6552d5efa684545b8d11772f8eb6bc4.jpeg)

Regards,

James

---

<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:** [March 1, 2022, 7:22pm UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/2 "2022-03-01T19:22:26Z")

</div>

I would start with looking at the .log file also created. A log for 600 meshes might be long, You should know the mesh name, so you could just search for the name in the log.

---

<div class="post-metadata">

**Author:** ![James1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/james1/32/20679_2.png) [@James1](https://forum.babylonjs.com/u/James1)\
**Post date:** [March 1, 2022, 7:36pm UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/3 "2022-03-01T19:36:40Z")

</div>

Hi,

I’ve reduced the file down so it’s only got that one mesh in. I’m no expert in blender, I wouldn’t know what to look for in the log file to be honest.

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [March 1, 2022, 9:22pm UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/4 "2022-03-01T21:22:05Z")

</div>

I exported GLB from your .blend file and seems it had no errors

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

---

<div class="post-metadata">

**Author:** ![James1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/james1/32/20679_2.png) [@James1](https://forum.babylonjs.com/u/James1)\
**Post date:** [March 1, 2022, 10:07pm UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/5 "2022-03-01T22:07:37Z")

</div>

Hi @labris

It’s the .Babylon file I need as I’ve found a workaround to the whole issues I’ve had with the two materials per object in my other models. If I export a bablyon file it keeps everything together as one object so I don’t need to have the workaround of cloning meshes and deleting then etc for that highlight issue I’ve had.

The model for my city exports fine for the whole city and the 600 odd buildings but for this one object, it doesn’t export correctly in the .Babylon format. I’ve had it working fine too for the .glb format so it seems like a strange issue.

---

<div class="post-metadata">

**Author:** ![James1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/james1/32/20679_2.png) [@James1](https://forum.babylonjs.com/u/James1)\
**Post date:** [March 2, 2022, 9:38am UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/6 "2022-03-02T09:38:37Z")

</div>

Info: Total files 17 | Changed 17 | Failed 0  
========= Conversion from Blender to Babylon.js =========  
Scene settings used :  
Inline textures : false  
Material Type : PBR  
Positions Precision : 4  
Normals Precision : 3  
UVs Precision : 3  
Vert Color Precision: 3  
Mat Weight Precision: 2  
Keep Z-up r-handed : no  
Texture directory : C:\Users\Local User\Documents\Block City\fresh\CYBERPUNK CITY 1w  
Python World class constructor completed  
processing begun of mesh: Circle.010  
processing begun of material: CONCRETE.001  
WARNING: unsupported node type(ShaderNodeBump) will trigger baking  
processing begun of material: ROAD.001  
WARNING: unsupported node type(ShaderNodeBump) will trigger baking  
processing begun of material: LED.001  
WARNING: Metal channel baking required, but not possible, ignored  
WARNING: Roughness channel baking required, but not possible, ignored  
WARNING: Refraction channel baking required, but not possible, ignored  
usePassDirectHold True  
Baking texture, type: DIFFUSE, mapped using: BakingUV  
Info: Baking map saved to internal image, save it externally or pack it  
processing texture Circle\_010\_baked\_DIFFUSE  
texture type: diffuseTexture, mapped using: “BakingUV”  
Diffuse / albeto channel baked  
Baking texture, type: EMIT, mapped using: BakingUV  
Info: Baking map saved to internal image, save it externally or pack it  
processing texture Circle\_010\_baked\_EMIT  
texture type: emissiveTexture, mapped using: “BakingUV”  
emissive channel baked  
Baking texture, type: GLOSSY, mapped using: BakingUV  
Info: Baking map saved to internal image, save it externally or pack it  
processing texture Circle\_010\_baked\_GLOSSY  
texture type: specularTexture, mapped using: “BakingUV”  
specular channel baked  
Baking texture, type: NORMAL, mapped using: BakingUV  
Info: Baking map saved to internal image, save it externally or pack it  
processing texture Circle\_010\_baked\_NORMAL  
texture type: bumpTexture, mapped using: “BakingUV”  
bump channel baked  
bake time: 0 min, 30.201 secs  
num positions : 174  
num normals : 174  
num tangents : 0  
num uvs : 348  
num uvs2 : 0  
num colors : 0  
num triangles : 58  
========= Writing of JSON file started =========  
writing mesh: Circle.010  
========= Writing of JSON file completed =========  
========= end of processing =========  
elapsed time: 0 min, 30.2326 secs

---

<div class="post-metadata">

**Author:** ![James1](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/james1/32/20679_2.png) [@James1](https://forum.babylonjs.com/u/James1)\
**Post date:** [March 2, 2022, 11:38am UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/7 "2022-03-02T11:38:43Z")

</div>

> [@James1](#):
>
> unsupported node type(ShaderNodeBump)

I took out the bump shader and it seems to have resolved the issue. I can now export as a .babylon file without losing the textures.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/5/653170cbf188ab3ea23296520eda946f740602e0.png)  
after  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/b/bb349b50e3866448cbf68acd6db841fa0b209125.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:** [March 2, 2022, 1:41pm UTC](https://forum.babylonjs.com/t/issues-exporting-materials-for-an-object-from-blender-to-babylon-file/28046/8 "2022-03-02T13:41:11Z")

</div>

Yes, I do not see that was doing any good, and it is causing baking, which is very non-optimal. If baking is going to be necessary it is always better to do it yourself rather than force the exporter to try and do it. There is no easy half way, like still using roughness / metallic scalars, multiple materials etc. If baking is done in advance, you have a full range of options.

That is the reason for the log file. You have a way to know what was done & why, and be able to solve your own problems.
