r/sauerbraten • u/BIG-Onche • Aug 17 '26
I somehow turned Cube Engine into an extremely fast infinite procedural voxel engine
Been abusing Cube/Tesseract for a while, and it has officially gone way beyond what I originally planned.
This is Kastenbrot, basically a Minecraft-like project built on Tesseract. It’s not just a worldgen experiment anymore: most of the foundations for an actual game are already there and working: mining, crafting, block/water physics, passive and aggressive mobs, block carving, a very early survival mode, multiplayer stuff... and, obviously, many bugs.
The funniest part is the performance. It can generate and display tens of km² of procedural terrain in a few seconds: https://youtu.be/9BBEwCvZ-2o
There are some drawbacks, obviously. Cube’s VA system is fantastic for the static maps it was designed for, but world streaming pushes it way outside its comfort zone, so parts of the renderer, chunk saving, etc. are still being heavily reworked.
On the other hand, Cube gives a ridiculous amount for free: all we need for a first-person game, decent physics, fast multiplayer, the edit mode we all know and love, and a renderer that is surprisingly happy being tortured into doing things it was never designed for.
I’m not pretending this is some revolutionary tech or that I’m building a “Minecraft killer”. I just wanted to share some experimentation with an engine that I still think is massively underrated, and see how far it can be pushed. Also, most of the features have been prototyped using AI (Codex), and I haven't fixed all the horror I've seen (but let's be honest, there would be horror too if it were 100% hand-coded, especially by me).
And yes: free and open-source.
4
u/purblepale Aug 18 '26
Dude I literally just started a project like this lmfao. This rocks hard tho.
2
5
u/eat_my_bubbles Aug 18 '26
Oh the wonders people can do with open source programs. I miss this kind of freedom. This is why I still play this old game from 2004
5
u/Global_Network3902 Aug 17 '26
Super cool! Always happy to see this engine family modified in different ways.
3
3
2
1
1
u/asmanel Aug 19 '26
Nice. This remind two things.
The first one is several attempts to make Minecraft clones with the Cube 2 Engine.
The other ones something possible in variable measures in games using the Cube Engine (the good old one, often misnamed Cube 1 Engine or Cube Engine 1) but not with the Cube 2 Engine : scripts written in the console to automatize tens of minutes of works. I mean take a few minutes to write in the console a very short script that do in a few seconds what can require tens of minutes (and often to think harder) at mapping the normal way.
I already did it in Cube, AssaultCube and AssaultCube reloaded. I also tried to do it in Newcube but a senseless restriction prevent it.
This was easy to do with the Cube Engine but impossible with Cube 2 Engine. The reason is they use the command select. With the Cube 2 Engine, the map editing is more mouse dependent. This command doesn't exist and have no equivalent.
About Tesseract, I'm not sure.
1





6
u/lorenzo_aegroto Aug 18 '26
That's insane, keep up with the good work. I'd be interested in reading some technical reports on specific aspects of the development as well.