Comment by astroalex
3 years ago
I absolutely love this and am curious about the technical details behind simulating soap bubbles like this (it looks like the code isn't available). Does anyone know what algorithm is being used?
3 years ago
I absolutely love this and am curious about the technical details behind simulating soap bubbles like this (it looks like the code isn't available). Does anyone know what algorithm is being used?
Looks like a little bit of Voronoi patterns when the bubbles connect?
https://en.wikipedia.org/wiki/Voronoi_diagram
Agreed that Voronoi patterns emerge, but I'm not sure that they're using an explicit Voronoi algorithm to achieve that effect. I doubt it.
It's more likely IMO that the Voronoi pattern emerges from the constraints of the simulation.
https://github.com/saharan/OimoPhysics
Their physics engine doesn't seem related to the bubble toy as far as I can tell (although another HN comment implies it is). The physics engine implements 3D collisions between solid objects, joints, springs, etc. But the bubble toy is a different type of physics.