# Problem with alpha transparency with Blender exporter

**URL:** <https://forum.babylonjs.com/t/problem-with-alpha-transparency-with-blender-exporter/5794>\
**Category:** Content creation (3dsMax, Maya, Blender, glTF)\
**Created:** [September 22, 2019, 9:19am UTC](https://forum.babylonjs.com/t/problem-with-alpha-transparency-with-blender-exporter/5794 "2019-09-22T09:19:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mecanicus](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mecanicus](https://forum.babylonjs.com/u/mecanicus)\
**Post date:** [September 22, 2019, 9:19am UTC](https://forum.babylonjs.com/t/problem-with-alpha-transparency-with-blender-exporter/5794/1 "2019-09-22T09:19:36Z")

</div>

Hello,

I have a problem exporting an object with Blender 2.8.  
I put alpha transparency and rendered with Blender is correct.  
After export with version 6.2.0, I can not find transparency in the sandbox.  
I attached the zip file of the export: chambrage5c.zip  
What’s wrong ?

 ![Capture](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/4/48cbcd53c49d2dc52bb318a863a258b6d8e9dade.jpeg)  
 ![Capture2](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/f/f58aebf9389d5e360fb56a8c8fe3f85af82c3a07.jpeg)  
Exporter log file :  
xporter version: 6.2.0, Blender version: 2.80 (sub 75)  
========= 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  
texture directory : D:\guide\_de\_la\_mecanique\LE\_GUIDE\Les\_animations\_edge\formes\_techniques\chambrage\blender  
Python World class constructor completed  
processing begun of mesh: Cylinder.001  
processing begun of material: bleu  
processing begun of material: rouge  
processing begun of multimaterial: chambrage5b.Multimaterial#0  
num positions : 1002  
num normals : 1002  
num tangents : 0  
num uvs : 0  
num uvs2 : 0  
num colors : 0  
num indices : 4476  
processing begun of mesh: Cylinder  
processing begun of material: bleu  
processing begun of material: rouge  
processing begun of material: bleuAlpha  
processing begun of material: rougeAlpha  
registered as also a user of material: rouge  
processing begun of multimaterial: chambrage5b.Multimaterial#1  
num positions : 1002  
num normals : 1002  
num tangents : 0  
num uvs : 0  
num uvs2 : 0  
num colors : 0  
num indices : 4476  
processing begun of camera (ArcRotateCamera): Camera  
WARNING: Camera type with mandatory target specified, but no target to track set. Ignored  
processing begun of light (DIRECTIONAL): Lamp  
========= Writing of JSON file started =========  
writing mesh: Cylinder.001  
writing mesh: Cylinder  
========= Writing of JSON file completed =========  
========= end of processing =========  
elapsed time: 0 min, 0.31 secs[chambrage5c.zip](https://forum.babylonjs.com/uploads/short-url/dvgwRgwCNORW8yVN9AvzVi1g652.zip) (31.4 KB)

---

<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:** [September 23, 2019, 4:15pm UTC](https://forum.babylonjs.com/t/problem-with-alpha-transparency-with-blender-exporter/5794/2 "2019-09-23T16:15:14Z")

</div>

pinging @JCPalmer

---

<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:** [September 23, 2019, 4:43pm UTC](https://forum.babylonjs.com/t/problem-with-alpha-transparency-with-blender-exporter/5794/3 "2019-09-23T16:43:04Z")

</div>

At first look, the inspector does set transparency mode to `Alpha Blend`. As your .blend properties indicates, the exporter is not using the Blender property. The property is slightly different, but the big thing was the default for culling is backwards. This is a major performance issue, so just wanted to ignore everything in that “Settings” section.

You passed the .babylon file, not the .blend, I do not really read JSON. One thing to make sure of is, does this blend work with the scene clear color? In my limit use of this, I have always had another material / mesh I was blending with. @Deltakosh or @sebavan, a ruling of whether PBR alpha blending works with scene clear?

Assuming yes, also make sure that you have alpha in your base /albedo or albedo texture. I did one about an hour ago with just a base color. When you reduce alpha from 1, half the swatch gets a checker board. Starting to see why I decided not to use the Blender properties, though the glTF does?

 ![blend%20clear](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/9b2a4d70e34d302ec3165879f3ddf916b94e5b02.jpeg)

---

<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:** [September 23, 2019, 4:47pm UTC](https://forum.babylonjs.com/t/problem-with-alpha-transparency-with-blender-exporter/5794/4 "2019-09-23T16:47:30Z")

</div>

Yup blending works with the clear color as well in the exact same way for PBR.

---

<div class="post-metadata">

**Author:** ![mecanicus](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mecanicus](https://forum.babylonjs.com/u/mecanicus)\
**Post date:** [September 23, 2019, 6:09pm UTC](https://forum.babylonjs.com/t/problem-with-alpha-transparency-with-blender-exporter/5794/5 "2019-09-23T18:09:48Z")

</div>

Hello,  
Thank you for your reply.  
I did not see that I could adjust transparency by setting the base color.  
 ![Image%202](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/c/cb05998557b49b0598742bac98fb2913abb552ff.png)  
It works.

 ![Capture](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/5cd4217d701a0fe29d26dc72c4305f09306e6faa.jpeg)  
Thank you.
