KevinBLT 12 Posted June 27, 2016 Report 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 post Share on other sites
adam 755 Posted June 27, 2016 Report 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 post Share on other sites
Deltakosh 4315 Posted June 27, 2016 Report 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 post Share on other sites
Kesshi 89 Posted June 27, 2016 Report 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 post Share on other sites
KevinBLT 12 Posted June 28, 2016 Author Report 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 post Share on other sites
Deltakosh 4315 Posted June 28, 2016 Report Share Posted June 28, 2016 Oh yeah I've just forgot about things I developed...I'm getting old Quote Link to post Share on other sites
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.