Emission material glow after export from Blender not working

Hey there,

I am trying to create an object with multiple materials in Blender, one of them should be glowing due to its emission value - however, I cannot get it to work.

  • Blender 2.9
  • Blender-Babylon-Exporter 6.4.6
  • tried with Babylon.JS 4.2 and 5.0 in the playground

You can find the blend files and the exported .babylon file here:

I am able to import the scene into the playground, but there is no emission glow visible:

Any help or hints highly appreciated :slight_smile:

In case of obvious mistakes - really a newbee at babylonjs :slight_smile:

It looks like none of your exported materials are emissivie, actually no materials seem to have been exported. Adding @JCPalmer who built the exporter.

1 Like

Looking at your .blend file in the Shading Window, I see both of your materials (the white and purple) are set up using the Principled BDSF shader. Disconnect that shader and replace it with an Emission Shader

Add->Shader-> Emission

  • set the colors and strength as you desire and export. See image below.

You should see something like this in your .babylon file:

{“name”:“Emission”,“id”:“Emission”,“customType”:“BABYLON.PBRMaterial”,“backFaceCulling”:true,
“checkReadyOnlyOnce”:false,“maxSimultaneousLights”:4,“environmentIntensity”:1
,“emissive”:[1,1,1],“roughness”:0.2,“alpha”:1,“transparencyMode”:0,
“alphaCutOff”:0.4,“emissiveIntensity”:1}]

I’m not sure what you are trying to create - but you can change both materials if if you want.

Here is an example : The Office

Stay Safe, gryff :slight_smile:

3 Likes

Hi, How would this work say if you wanted to use an image as the emission color. Setting that emission color limits to the one color.

These are my shader settings. I’ve tried the above but it set’s the whole building to white (or the colour you pick).