jasonmcleod Posted October 8, 2016 Share Posted October 8, 2016 Before I set off to try to build this.. is there anything built in, or 3rd party that can combine these cubes like MergeMeshs would, but actually remove duplicate vertices? I'm sure I'm using all the wrong terminology.. so here is a playground, and a photoshop mock up of what I'm after http://www.babylonjs-playground.com/#1WKAC2 Thanks! Quote Link to comment Share on other sites More sharing options...
JohnK Posted October 8, 2016 Share Posted October 8, 2016 Not tried it on merged meshes but you could give the code in this topic a go http://www.babylonjs-playground.com/#1WKAC2#1 shows it does reduce vertices 264 to 48 but not in the way you want. Interesting problem? Quote Link to comment Share on other sites More sharing options...
jasonmcleod Posted October 8, 2016 Author Share Posted October 8, 2016 Need to read over what exactly is going on in this function when I have a few minutes (we are moving, during a hurricane at the moment) I did drop it into my code base, but didnt see any noticable performance gain In my implementation, I'm planning to generate 200-300 rows. As the player falls between the blocks it lags really badly as it tries to figure out collisions I guess. I may try a heightMap approach next and see if thats any more performant. Thanks for the reply @JohnK 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.