Hey, how are y’all? I’m here to share something that I did yesteday!
After seeing Imaginaerum’s post about Marching Cubes I wanted to do my own implementation for Marching Cubes that you can edit in real time!
Demo
There’s the place: https://www.roblox.com/games/5101622292/Terrain-Voxeles-MC
Left Click/Hold/Press: add terrain
Right Click/Hold/Press: remove terrain
Hope this helps a lot of devs!
Some details
- Runs at 60 fps
- It uses chunks
- It updates neighboring chunks if they have the same vertex
- Supports any interpolation between vertices
Learning resources
Paul Bourke
- “Polygonising a scalar field”: Polygonising a scalar field (Marching Cubes)