Jump to content

Transparency Issue


adam
 Share

Recommended Posts

I created a simple cylinder in Blender, removed the top and bottom, copied the vertices and flipped the normals so that I've got a double sided mesh. 

I've created a PG where I load the mesh, give it a transparent mesh and clone it and position them end to end.

http://www.babylonjs-playground.com/#21XUBV

It looks pretty good, but there is a disc drawn where the meshes touch.

I tried merging the two meshes but it only gets rid of the disc when viewing the meshes from below.

http://www.babylonjs-playground.com/#21XUBV#2

http://www.babylonjs-playground.com/#21XUBV#3

If I position the cloned mesh below the original mesh, the disc can be seen from below and not above.

http://www.babylonjs-playground.com/#21XUBV#5

http://www.babylonjs-playground.com/#21XUBV#4

If I change the order of the mesh array I send to merge meshes, it also changes the whether I can see the disc from above or below.

http://www.babylonjs-playground.com/#21XUBV#6

3 meshes merged:

http://www.babylonjs-playground.com/#21XUBV#9

 

Is there any way to get rid of that annoying disc between the meshes?

 
Link to comment
Share on other sites

Just wondering, if you gave each of your pieces a separate material with different transparent material, then "merged" it in Blender (join).  The problem would be back, right?

The reason for the join (select then Object->Join menu) in Blender, is all meshes must be same material to merge in BJS right now.

Link to comment
Share on other sites

  • 1 year later...

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...