BlackShadauw

GLTF dont apply alpha/transparency

Recommended Posts

Hi guys,

I am stuck an don't find any workable solution on the web.

I would like to apply transparency on a simple box (with / or without UV mapp), but if in my Blender it seems to be OK, in my BSJ scene it dosent work, the transparency dosen't apply :(.

Any idea what could be missing ?

 

 

Capture.JPG

Share this post


Link to post
Share on other sites

Hi @V!nc3r,

Thanks yea finaly the transparencyMode did the trick.

But this is sad to pass by BJS when using glTF for that kind of stuff.
My glTF alpha, alphamode etc values are not applied on the Material object in Babylon :(

In chrome inspector i have these (as you can see before that's not what I made.. well never mind)

  1. albedoTexture:undefined
  2. alpha:1
  3. alphaCutOff:0.4
  4. alphaMode:2

Share this post


Link to post
Share on other sites

@BlackShadauw

I've written about this before, but in my opinion the best pipeline into BJS is using the .Babylon format exported from Blender - which is the most compatible and repeatable format to use. I like Kronos, yeet the glTF format is lacking.

I hope this helps.

DB

Share this post


Link to post
Share on other sites

Of course it works when using an alpha texture, but sometimes you want alpha in a material without texture - like the example case of this thread - , and if so we have to tweak the transparencyMode when in BJS.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.