Jump to content
ParticleSkull

Advanced Bubbles - Flat Intersection

Recommended Posts

Hey guys, i'm trying to create that flat intersection real life bubbles have when intersect with each other.

 

Like this:

 

bubbles%20small_zpssalniofr.jpg

 

I've found an old topic about it (from 2006-2008) where the guy called Macha solved it (download hip) and it looks almost perfect but I don't really understand what is going on there. Could anyone help me to understand it?

 

It's done using the old for each sop. Would it be better to use the new loop tools?

Here's a couple of screenshots of Macha's setup:

Bubbles-Setup_zpsdpo7pon6.jpg

Thank's

Alvaro

Edited by ParticleSkull

Share this post


Link to post
Share on other sites

I think it is kind of one-trick pony setup. All that additional FOREACH is doing is scaling the 3 spheres by zero to use their center point for the fracture points.

In this quick modification I have scattered a few points across a grid and introduced some random size. The logic behind this network kind of breaks down. Not sure why? Perhaps clipping needs to take size into account?

post-12295-0-32321000-1459283466_thumb.p

ap_bubbles.hipnc

Edited by Atom
  • Like 1

Share this post


Link to post
Share on other sites

Damn, I think it might not work as good as I thought. Do you think is there another way to scale the bubbles without breaking the setup? It's very important to have random size bubbles on a scene like this.

Share this post


Link to post
Share on other sites

I don´t know how fast it will be but this kind of overlapping always screams volumes to me. I would try with a vdb setup generating new volumes from intersecting bubbles...

 

...admittedly, it might be kinda slow for many bubbles.

Edited by Netvudu

Share this post


Link to post
Share on other sites

Here is a basic attempt at using a volume to make the surface. You don't get the dividing walls, however, which could affect shading.

post-12295-0-58389300-1459300136_thumb.j

 

The Ramp shader applied.

post-12295-0-95760100-1459302074_thumb.j

ap_bubbles_1a.hipnc

Edited by Atom

Share this post


Link to post
Share on other sites

3ifyFXg.png

 

There is a core of the Voronoi Fracture node called Voronoi Split. A very simple node expecting geometry and fracture points connected as polylines. It slices geometry right at the middle of them. That is why different scales not work. We can slice each bubble and move neighboring points closer or further to move middles right at the place of two spheres intersection.

 

foam.pngfoam_wire.png

 

Another quick idea is to find two nearest points of a point wrangle's second input's pointcloud and set point positions (or pixel values at rendertime or even volume density) when two distances are close to intersection point.

 

bubbles.hipnc

UP: there is better version below.

Edited by f1480187
  • Like 4

Share this post


Link to post
Share on other sites

That is a nice example. Is there any way to guarantee point count? In this image I have set the scatter to 16 but I only get 6 bubbles?

post-12295-0-66469000-1459341892_thumb.j

 

I guess the next step is to figure out how to add a ring of tiny bubbles around these "hero" bubbles.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×