# Help with generating Bubbles with GeoNodes

So my final goal is to have a procedural way of generating clusters of bubbles. The issue, most people say to use Metaballs, but those only really define the surface, but bubbles have those characteristic “flat interfaces” when two bubbles collide. I was wondering if there was any way to approximate that, without simulating two spheres touching, lol-

The idea is to procedurally be able to “boolean” x amount spheres together, in such a way that it resembles the actual structure of bubbles, with their flat interfaces and all… Now I know how to get the bool half of the process in geo nodes, but I cant for the life of me figure out how I would generate the “inside surface”.

Here’s how I imagine the structure for two spheres;
You begin with two Spheres and solidify them. Now you have two inner and two outer spheres.

Then you boolean/union the two outer spheres together, giving you the “outside surface”. (here the two bottom ones are the outside- just for visual clarity

Now, the IDEA is to grab the two inside spheres and …“bisect?” them together, such that you end up with a flat interface on each where they once touched. As if they had been squished together and have now been left “flattened” where they touched.
This is the part I cant seem to figure out in geonodes. How would I even begin to generate a face on a ring of edges, etc? The rest of this process I know already.

The final result would be the in and outside of two bouble, or at least, a naive aproximation of it.

Do yall have any suggestions or perhaps “less dumb” approaches. I’m all ears <3

Or you stop overthinking it…

4 Likes

The whole reason Im avoiding sims is because these arent bubbles constrained to volumes. I’m not just trying to create pillows.
They’re going to be scattered inside/ontop of an existing mesh. Like the bubbles atop a cup of coffee or the foam on a beer.

Im not just trying to inflate a mesh.
I’m well aware of how to do a cloth sim with pressure :>

Then I would suggest you start with this video, as a base. Then you can change to fit your needs…( Like the random noise he is using, I don’t think fits on a bubble, bubbles tend to stay Circular till interacting with outside forces or objects.

and then perhaps take the nodes from this shader into your GN setup ( Voronoi ) to get those flat faces on the connecting edges…

1 Like