Quantum Foam Generator

In short, fuck the cubes, you just need to squeeze the space between the balls, make all the balls the same size, and blur the boundaries between the balls, turning them into foam.

Quantum foam (version 24 - With a compressed space between the balls) | Babylon.js Playground

Okay, to hell with balls and cubes, I’ll just take a grid and make pipes along the grid.

Запись_2025_09_26_03_54_15_909

Quantum foam (version 25 - Grid version) | Babylon.js Playground

Damn, but it turned out to be torn too.

To hell with balls, grids, cubes, we’ll just take dots.

Quantum foam (version 26 - Dots version) | Babylon.js Playground

If you don’t know quantum mechanics, then I think it will be useless for you to explain what quantum foam is, but if you can’t wait, you can try to ask ChatGPT to explain it in simple language as someone who is unfamiliar with quantum physics.

1 Like

No, let’s go back to the cube version and make them the same size.

Quantum foam (version 23 - Cube per-instance version (with cubes of the same size)) | Babylon.js Playground

No, I want to puke from these stinking voxels… :face_vomiting:

Let’s fix this terrible flaw!

Quantum foam (version 27 - per-instance cubes, but with limited space between them) | Babylon.js Playground

Let’s close the space between the boxes.

Now you need to create a smoothed version.

Quantum foam (version 28 - per-instance cubes, but with smooth version) | Babylon.js Playground

Quantum foam (version 29 - Grid + Dots) | Babylon.js Playground

Quantum foam + Backrooms

Quantum foam (version 30 - Quantum foam but for the place of dots OBJ) | Babylon.js Playground


Quantum foam (version 31 - Quantum foam + Backrooms but OBJ in random places) | Babylon.js Playground

I warn you, OBJ may slow down when downloading.

You know, I still think you’re a mad genius, right?

1 Like

Thanks to Chudik Compression, we can liken the quantum foam Noodle to a biome like in Minecraft, although it seems to me more like a farland…

Quantum foam (version 32 - Chudik Compression) | Babylon.js Playground

In other words, turn quantum foam into spaghetti.

Or we need distant lands like in Minecraft, then we need to make the parameters as in the video.

Although I call it a Super honeycombs.


When I used to program on mayavi, I got this structure.

Quantum foam (version 33 - Chudik Compression + Spacing Compression) | Babylon.js Playground

Great, we’ll replace the torn isoface of quantum foams with geoids!

Quantum foam (version 34 - Geoids foam) | Babylon.js Playground

Now add everything else.

Quantum foam (version 34 - Geoids foam) | Babylon.js Playground

I accidentally came across an interesting topic called ‘PBR raymarching metaballs’, and decided to replace the interfaces with Ray Marching instead of Marching cubes, and I got a gasoline cube, that’s what I call it!

Quantum foam (version 35 - Petrol Cube: Ray Marching version) | Babylon.js Playground

I’m almost close to realizing my goal, there’s not much left!

Quantum foam (version 36 - Isorfaces animated) | Babylon.js Playground

Well, I’ve finally modeled the quantum foam!

Quantum foam (version 38 - Metaballs version) | Babylon.js Playground

Let’s compare what happened and what became.

Before:

After:

All that remains is to solve the problem of the torn interface and that’s it.

And here are those notorious distant lands of quantum foam!

I liked this implementation, and I came up with a new backroom level - Iron Clippings.

Quantum foam (version 39 - Backroom Level: Iron Trimmings) | Babylon.js Playground

This is a level that represents an endless space created from razor-sharp steel stones.