Creating bubbles in a glas and on the suface


#1

Hi you smart and intelligent folks.
I am wondering how to create champange bubbles in a glas that goes through the liquid and then breaks the surface and lives for an second or so on the surface as a half bubble.
The first part goes well but then the other… when the bubbles live and moves a bit on the surface.
Any ideas or suggestions?

Thanks…

Ludde3d


#2

You could try something like the attached scene. In it some nParticles emit with some drag on the particles and are pushed up to the top of the liquid by a volume axis field. The mass is varied with the radius so that smaller particles have more drag and move slower. When they get to the top of the field they stop moving with nothing to push. A second volume axis field at the top then pushes them to the edge of the glass. The glass is a passive collider.
The particles have a sphere instanced to them and have the same shader as the liquid mesh. A pond node was created at the top of the glass and the particles emit into it to create ripples. The pond node was converted to a mesh( fluid to poly with history), which slows things a bit. Then this square mesh was booleaned with the liquid mesh… this really slows things down a lot… one could disconnect this part when working on the simulation and show the pond node for faster playback. The radius of emission from the particles into the pond is set such that the pond surface pushes up as a thin liquid layer over the bubbles. The particle lifespan is set so they pop shortly after reaching the top, creating ripples. The rendering of the bubbles with the liquid layer on top also ensures the correct inside outside for raytraced refractions.


#3

HAHA nice one Duncan! :smiley:


#4

Very nice Duncan.