Jump to content

BabylonJS How to make an imported mesh to be transperent?


galethegreat
 Share

Recommended Posts

Hi there,

I am a total noob when it comes to Babylon but I am trying my best here :D.

I cannot find an example of how to make an imported mesh (using BABYLON.SceneLoader.ImportMesh )transparent. 

I have played around with couple of examples with spheres and changing their alpha and sphere that have a texture assigned to them and then changing it to be transparent, but how does one do this when the file that you are loading using the importMesh is a Babylon file with all the textures, when I use mesh.material.alpha = 0.5, it makes the material transparent but  the texture just goes white, I cannot see through it to the mesh behind it.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...