# When blender is exported as a Babylon file, the part of the clothing model turns black

**URL:** <https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410>\
**Category:** Questions\
**Created:** [February 4, 2020, 8:40am UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410 "2020-02-04T08:40:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yunianhzuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yunianhzuang/32/5839_2.png) [@yunianhzuang](https://forum.babylonjs.com/u/yunianhzuang)\
**Post date:** [February 4, 2020, 8:40am UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/1 "2020-02-04T08:40:39Z")

</div>

![微信截图_20200204163721](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/4/471ad58f772ae2aa15a16b317782a2b5de635186.jpeg)  
Why does this happen？？  
There’s nothing wrong with the model in blender, but when you export the Babylon format you get a partial blackening.As you can see in the picture.There is no problem exporting obj or GLTF,When I add the “normal” image, the part will be black, just like the arm part.The uv of the model is ok.I also recalculated the normal direction when I exported to the blender, but it didn’t work.  
What I’m going to do is I’m going to take an obj format and convert it into Babylon format in blender.There were some mistakes.Exporting to GLTF is not a problem, but I need the Babylon format.The bundle contains model resources in different formats.  
[https://www.babylonjs-playground.com/#JUKXQD#286](https://www.babylonjs-playground.com/#JUKXQD#286)  
[https://www.babylonjs-playground.com/#JUKXQD#288](https://www.babylonjs-playground.com/#JUKXQD#288)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [February 4, 2020, 5:17pm UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/2 "2020-02-04T17:17:39Z")

</div>

Pinging our blender gods (@gryff / @Vinc3r)

Can you please share your model

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [February 4, 2020, 6:47pm UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/3 "2020-02-04T18:47:53Z")

</div>

Does your materials using gltf exporter convention, especially color space in texture nodes ? [glTF 2.0 — Blender Manual](https://docs.blender.org/manual/en/latest/addons/import_export/io_scene_gltf2.html#materials)

---

<div class="post-metadata">

**Author:** ![yunianhzuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yunianhzuang/32/5839_2.png) [@yunianhzuang](https://forum.babylonjs.com/u/yunianhzuang)\
**Post date:** [February 5, 2020, 10:30am UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/5 "2020-02-05T10:30:05Z")

</div>

Thank you very much.I have uploaded babylonian and obj formats to the playground, but I am not very familiar with the playground.The image resource of the model is not loaded. The image and model are in the same path.  
[https://www.babylonjs-playground.com/#JUKXQD#286](https://www.babylonjs-playground.com/#JUKXQD#286)

[https://www.babylonjs-playground.com/#JUKXQD#288](https://www.babylonjs-playground.com/#JUKXQD#288)

---

<div class="post-metadata">

**Author:** ![yunianhzuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yunianhzuang/32/5839_2.png) [@yunianhzuang](https://forum.babylonjs.com/u/yunianhzuang)\
**Post date:** [February 5, 2020, 10:39am UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/6 "2020-02-05T10:39:06Z")

</div>

Thank you very much.My main goal is to convert obj to Babylon in blender, no problem converting to GLTF.After converting to the babylonian format, there is a local blackening problem.If you are interested, you can have a look at the model on the playground.  
[https://www.babylonjs-playground.com/#JUKXQD#286](https://www.babylonjs-playground.com/#JUKXQD#286)  
[https://www.babylonjs-playground.com/#JUKXQD#288](https://www.babylonjs-playground.com/#JUKXQD#288)

---

<div class="post-metadata">

**Author:** ![withADoveInOneHand](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/withadoveinonehand/32/1243_2.png) [@withADoveInOneHand](https://forum.babylonjs.com/u/withADoveInOneHand)\
**Post date:** [February 5, 2020, 10:52am UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/7 "2020-02-05T10:52:06Z")

</div>

The thing about edge cases is that there are infinite of them XX

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [February 5, 2020, 1:09pm UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/8 "2020-02-05T13:09:28Z")

</div>

I think issue is on Blender side, can you share you object as .blend?

---

<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:** [February 5, 2020, 5:02pm UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/9 "2020-02-05T17:02:38Z")

</div>

A good starting point is to upgrade to the latest exporter. Your .babylon file shows

> {“producer”:{“name”:“Blender”,“version”:“2.80 (sub 75)”,“exporter\_version”:“6.2.0”,“file”:“M3.babylon”},

There have been changes since related to materials. This could likely be related. Also, post your log file afterward.

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [February 5, 2020, 9:19pm UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/10 "2020-02-05T21:19:55Z")

</div>

Is your geometry triangulated or is it quads? I’ve had this problem when I let the exporter convert my quads to Tris.

But that might not be what you have going on.

The solution for my case was to triangulate it prior to export so the UV coords are under control.

---

<div class="post-metadata">

**Author:** ![withADoveInOneHand](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/withadoveinonehand/32/1243_2.png) [@withADoveInOneHand](https://forum.babylonjs.com/u/withADoveInOneHand)\
**Post date:** [February 19, 2020, 8:14am UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/11 "2020-02-19T08:14:38Z")

</div>

Is something lost transforming quads to tris?

Is there hardware dedicated to quads or something?

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [February 19, 2020, 3:28pm UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/12 "2020-02-19T15:28:23Z")

</div>

It depends, I think we might have an caveat in our exporter on the way it triangulates because I have seen this be the fix several times.

---

<div class="post-metadata">

**Author:** ![yunianhzuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yunianhzuang/32/5839_2.png) [@yunianhzuang](https://forum.babylonjs.com/u/yunianhzuang)\
**Post date:** [February 25, 2020, 8:18am UTC](https://forum.babylonjs.com/t/when-blender-is-exported-as-a-babylon-file-the-part-of-the-clothing-model-turns-black/8410/13 "2020-02-25T08:18:02Z")

</div>

Thank you very much for your answer!My original model was a triangle, and then I tried to change it to a quadrilateral, and I changed it once, and it was normal, but if the quadrilateral was irregular, it would still be a problem, but it would change
