Hey everyone, I hope you’re all doing well! I thought it would be cool to try and implement the marching cubes algorithm on Roblox in Lua, and I’m here to share the results! Feel free to take this and learn from it, or use it in a future game idea you may have cooking up!
Thank you so so much for releasing this! There is a ton of super useful code in the place file and all of it is very well organized. I can’t wait to mess with all this cool stuff.
In Sebastian’s video, he mentions a triangulation table that contains the vertices for each of the triangles required for a given configuration. Using this table, and a triangulation function, I connect these vertices using two WedgeParts per triangle!
This looks fantastic and thanks for sharing. As a roblox coding noob ( I do Unity mainly ) seeing how to dynamically make a mesh is going to be very enlightening for me!
The theory behind marching cubes is simple, but unfortunantlly its pretty hard in practice,
roblox terrain has no customizability, only a selection of material, thats why i got intressed in it,
What i love about these modules is the fact that it has everything you need to also make it interactive, thanks to the update function and “explosion” function
There are really few resources like these, i guess most people just use terrain,
This is so cool I was just thinking about it and guess what after watching one of Sebastian’s videos c: . I read the code from the git hub it should have taken lots of time especially figuring out the marching code. I congratulate you.