KevinBLT Posted June 27, 2016 Share Posted June 27, 2016 Hello, I have found the following bug: When you use "convertToFlatShadedMesh()" and then enable EdgesRenderer it will render the triangles instead of the edges. This even happens with a simple cube also. Playground: http://www.babylonjs-playground.com/#1WVZLV Quote Link to comment Share on other sites More sharing options...
adam Posted June 27, 2016 Share Posted June 27, 2016 You can enable the edge renderer first and then convert to flat. http://www.babylonjs-playground.com/#1WVZLV#1 It is odd that it doesn't work the other way though. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2016 Share Posted June 27, 2016 This is because the flat mesh generates independant faces. They do not share edges (even if visually they do) Quote Link to comment Share on other sites More sharing options...
Kesshi Posted June 27, 2016 Share Posted June 27, 2016 It also works if you set the second parameter "checkVerticesInsteadOfIndices" to true: http://www.babylonjs-playground.com/#1WVZLV#2 adam 1 Quote Link to comment Share on other sites More sharing options...
KevinBLT Posted June 28, 2016 Author Share Posted June 28, 2016 This works for me! I think I will have to do a csg union for all meshes at first to get every correct edge. Thanks. With this parameter it's working Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2016 Share Posted June 28, 2016 Oh yeah I've just forgot about things I developed...I'm getting old 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.