Jaskar Posted October 7, 2015 Share Posted October 7, 2015 Hello dear Babylon lovers! I'll try to be clear : For the Babylon monthly challenge, I create a random maze, with many meshes. Then, I merge all the meshes for performance reason.It looks something like this http://www.babylonjs-playground.com/#QDDWX (better than this ) My question is : It merges the meshes, it's ok, but what about the inside faces ? Is it possible to remove it (the faces you can see inside the boxes) ? Quote Link to comment Share on other sites More sharing options...
adam Posted October 7, 2015 Share Posted October 7, 2015 I'd use CSG. http://www.babylonjs-playground.com/#QDDWX#1 Jaskar 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted October 7, 2015 Share Posted October 7, 2015 didn't you want the inside faces to visible ... inside ?http://www.babylonjs-playground.com/#QDDWX#2 Quote Link to comment Share on other sites More sharing options...
Jaskar Posted October 8, 2015 Author Share Posted October 8, 2015 @adam : Perfect! Thanks @jerome : Nop, it's not my goal. Thanks for the hint anyway My algorithm produce something that look like this : https://en.wikipedia.org/wiki/Maze_generation_algorithm#Depth-first_searchSo, I create a lot of cubes, that I merge after. Then, I don't care about inside faces. Quote Link to comment Share on other sites More sharing options...
Jaskar Posted October 8, 2015 Author Share Posted October 8, 2015 I just applied it to my Maze.On a 10*10 maze (walls are simple boxes), it's ok. But, on a 60*60 (with approximately 2000 boxes), CSG is so sloooow! It's impossible.So, I will only use MergeMeshes. 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.