Sign in to follow this  
adam

Transparency Issue

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?

 

Share this post


Link to post
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.

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
Sign in to follow this