Why my model rendered perfectly in Blender but bad in babylonjs,how can I fix it?

Sorry for my poor english, but I need help.

The picture below is an eye I created in Blender and rendered perfectly. The main difficulty was the glass texture of the pupil. This glass texture was created using the rendering node in the red box.


Then I imported the glb format file exported by Blender into the babylonjs scene. The code is as follows.

The final rendering effect in the babylonjs engine is like this:

I found that the rendering nodes in the red box of blender are invalid in babylonjs. How can I solve this problem? Or is there another way to achieve this glass pupil effect?

Hi, @lbjsuck and welcome to the forum,

Maybe you should try again with this : Babylon.js docs

I’m not sure if in Blender you have any option to determine the material mode: Opaque, Transparent or Cutout
I usually work with 3Ds Max and you have a property to assign it.

Also try to assign an Alpha mode to the material:

const material = scene.getMaterialByName("MaterialName");
material.transparencyMode = BABYLON.Material.MATERIAL_ALPHABLEND;
material.alpha = 1;
// MATERIAL_ALPHATEST 
// MATERIAL_ALPHATESTANDBLEND