Boiling with realwave

Discussion about fluid simulation in Realflow 4
User avatar
Calibrix
Posts: 122
Joined: Tue Mar 25, 2008 9:57 pm
Contact:

Boiling with realwave

Postby Calibrix » Thu Oct 21, 2010 7:14 pm

Hey guys, it's been awhile since my last post. I've been getting back into realflow lately, and have a question for the avid python scripters out there. I'm tasked with making a boiling liquid. I know this has been talked about and I may use those options. But I was thinking of something that is much lighter on sim time. My idea was to emit dumb particles from below a realwave mesh. Then calling a python script on collision with the realwave mesh I would kill the dumb particles and emit liquid particles in a spherical shape and have an outward force to create the splash. What I need to know is if there is a way to make a list of the particles colliding with a realwave mesh. I can't find much in the docs about particle and realwave interactions, and the "emitter.getCollidingParticles" command only returns particles that are colliding with geometry not realwaves or other particle system. Does anyone have a solution for this? The idea behind this system it to make it very light on sim time so speed up our production. Thanks guys.
www.cw-fx.com


User avatar
Calibrix
Posts: 122
Joined: Tue Mar 25, 2008 9:57 pm
Contact:

Boiling with realwave

Postby Calibrix » Thu Oct 21, 2010 10:03 pm

Just thought I would update you guys on what I'm doing. I've figured out how to get the particles position at impact. I would like to know a better way to doing this but this is what I've got so far.
First, apparently realwave can't detect collisions from particles on it's reverse side. So I've had to flip over my sim. Kinda silly but it works. So, I've set my bubble particles to collide and then "on surface" setting to Place. I'm running a python script that gets the position and kills the bubble particle if it moves less than a given tolerance. I'm working on emitting the splash particles.
I would like to know if anyone has an idea of how to emit particles in a spherical formation. Rather then emit from one point. I would like to tell my emitter to emit say 1000 particles in a given radius from a given point.
www.cw-fx.com

holycause
Posts: 7
Joined: Mon Apr 16, 2007 8:36 am
Contact:

Boiling with realwave

Postby holycause » Fri Oct 22, 2010 10:12 am

I've exactly the same problem on a production. I ll let u know if i find something.
VFX TD

User avatar
tmdag
Posts: 1023
Joined: Thu Jun 28, 2007 2:22 pm
Location: New Zealand
Contact:

Boiling with realwave

Postby tmdag » Fri Oct 22, 2010 10:49 am

http://vimeo.com/11046292
"Do not feed the trolls"
Albert 'tmdag' Szostkiewicz
FX Technical Director
Weta Digital

holycause
Posts: 7
Joined: Mon Apr 16, 2007 8:36 am
Contact:

Boiling with realwave

Postby holycause » Fri Oct 22, 2010 11:56 am

ok found it ^^

Code: Select all

baseEmitter = scene.get_PB_Emitter("Circle01")
foamEmitter = scene.get_PB_Emitter("Circle02")
partList = baseEmitter.getParticles()
for p in partList:
   partID = p.id
   if p.isBelowRealwave() == False:
      scene.message(str(partID))
      baseEmitter.removeParticle(partID)
      foamEmitter.addParticle(p.getPosition(), Vector.new(0,0,0))
VFX TD

User avatar
Calibrix
Posts: 122
Joined: Tue Mar 25, 2008 9:57 pm
Contact:

Boiling with realwave

Postby Calibrix » Fri Oct 22, 2010 6:19 pm

wow holycause, that's awesome. Great script. I really liked this idea but after talking with my supervisor it won't work for this shot. I'll actually be going with something very similar to what tmdag posted. But I will come back to this later. And I'll share what I find on it. Thanks guys.
www.cw-fx.com

holycause
Posts: 7
Joined: Mon Apr 16, 2007 8:36 am
Contact:

Boiling with realwave

Postby holycause » Fri Oct 22, 2010 7:39 pm

In our case, we can't use only particles, we have to use RWs.
So I had to figure out how to make it works :)
VFX TD

User avatar
Calibrix
Posts: 122
Joined: Tue Mar 25, 2008 9:57 pm
Contact:

Boiling with realwave

Postby Calibrix » Fri Oct 22, 2010 10:09 pm

The big reason we are going with a full particle sim is because we have a clear container and we want to see the interaction of the bubbles and the liquid below the surface. Like I said, I'll probably be revisiting this later when I'm not swamped with other things, cus I totally want to get this to work. I always prefer to work procedurally, because it's much easier to repeat things later.
www.cw-fx.com

User avatar
matt_Johnson
Posts: 81
Joined: Sun Aug 26, 2007 2:48 am

Boiling with realwave

Postby matt_Johnson » Fri Oct 22, 2010 10:54 pm

How about something like this....

http://vimeo.com/6687425
3D FX Artist


Return to “RF4: Fluid simulation”

Who is online

Users browsing this forum: No registered users and 1 guest