adam Posted July 12, 2015 Share Posted July 12, 2015 Is there anything that can be done to remove the discs that appear inside this tube when you look at it from different angles? http://www.babylonjs-playground.com/#1A4DON#3 Quote Link to comment Share on other sites More sharing options...
adam Posted July 12, 2015 Author Share Posted July 12, 2015 I found one solution, but it will take twice the number of vertices. http://www.babylonjs-playground.com/#1A4DON#4 Quote Link to comment Share on other sites More sharing options...
jerome Posted July 12, 2015 Share Posted July 12, 2015 Actually, DOUBLESIDE is twice the number of vertices than FRONTSIDE or BACKSIDE. I never understood why this "discs" appeared on transparent tubes as the normals are computed with the usual computeNormals() method I know the DOUBLESIDE orientation shouldn't be used with backfaceculling disabled because it causes z-fighting issues and alpha adds another complexity to sort things (so the "discs" maybe) here is the same with DOUBLESIDE and backfaceculling + alpha : http://www.babylonjs-playground.com/#1A4DON#5what is probably not the effect you want Quote Link to comment Share on other sites More sharing options...
adam Posted July 12, 2015 Author Share Posted July 12, 2015 Thanks Jerome. I think I am going to go with creating 2 meshes (one for the outside and one for inside) and then merge them together. http://www.babylonjs-playground.com/#1A4DON#6 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.