Exporting shadows from blender to babylon js

Hello i am trying to create my world in blender, but i have a problem with exporting shadows.

Here are the setup in blender, with the plugin used to export blender 2 babylon.

Here is the results in babylonjs:

The problem is that there is no guide to how to set the settings, to get the final results.

How do you solve this problem?

Regards,
Fadi Bunni

@JCPalmer Maybe you can help here?

Thanks :slight_smile:

This section of the docs may help you: Shadows | Babylon.js Documentation

Notably, with the inspector try to change the bias value and see if that helps.

1 Like

Thank you soo much, I made it kinda work. But another problem occured.

When i have “Receive shadows” on an object it just goes black:

(with received shadows)

(with recieved shadows turned off)

As you can see the castted shadow on the ground plane is alright.

Do you have any idea what the reason might be?

/Fadi

If the object is also a shadow caster, it could be that the bias value of the shadow generator is too low, try to raise it.

FYI, the cast & receive shadows properties can be set on export using properties of that name in the export custom properties section for a mesh.