Need help with transparent texture (BLENDER TO BABYLONJS)

Hi, I am trying to import a 3d model from blender to babylon with the glb file format. Everything works except for a texture file in jpg that has a transparent BSDF applied to it in Blender. How can I get the same result in babylon ?

Hey @Sunny_Tremblay! Welcome to the Babylon family! So good to have you hear!

Can you tell us more about how you’re creating the .glb file format. Are you using the built in exporter that comes with Blender? There is also a blender exporter that we maintain as well, which you can read more about here: GitHub - BabylonJS/BlenderExporter: Exports From Blender to Babylon.JS in JSON / .babylon format

To the best of my knowledge, I believe the built in exporter in blender primarily supports the Principled BSDF shader from Blender. You can read more about the exporter here: GitHub - KhronosGroup/glTF-Blender-IO: Blender glTF 2.0 importer and exporter

Also adding @bghgary to correct me if I’m wrong about that.

I’m not a shader expert by any means, but I know that you can use the alpha channel of the base color of a Principled BSDF shader to handle transparency for you. That might get you where you need to go.

P.S. - Your screenshots look rad! Can you share anything about what you’re working on :slight_smile:

The glTF-Blender-IO documentation (specifically this) is the best place to figure out how to export alpha to glTF. If that doesn’t give the answer, maybe ask this question to the Blender folks?

JPG can’t have an alpha channel, so maybe that’s part of the problem?