Emit particles on surface interpenetration?

Discussion about fluid simulation in Realflow 4
bluehonda
Posts: 117
Joined: Mon Sep 11, 2006 7:27 am

Emit particles on surface interpenetration?

Postby bluehonda » Thu Aug 04, 2011 3:52 am

Hi! everyone. Good morning. need a little help. i basically have 2 animated spheres intersecting. and i need to emit particles where these 2 spheres meet/ intersect. so like the middle part where there 2 bodies meet.

how can i do this?


thanks for all the help.


User avatar
bitSeq
Posts: 1044
Joined: Thu Jul 10, 2008 9:48 am
Location: UK - Stuart Armiger
Contact:

Emit particles on surface interpenetration?

Postby bitSeq » Thu Aug 04, 2011 8:28 am

I think there may be a script that will do that already.

bluehonda
Posts: 117
Joined: Mon Sep 11, 2006 7:27 am

Emit particles on surface interpenetration?

Postby bluehonda » Thu Aug 11, 2011 10:59 am

really? which one? I cant find it.

User avatar
bitSeq
Posts: 1044
Joined: Thu Jul 10, 2008 9:48 am
Location: UK - Stuart Armiger
Contact:

Emit particles on surface interpenetration?

Postby bitSeq » Thu Aug 11, 2011 3:48 pm

I think this script must be what I was thinking of, it would be possible to then use the wetmat created by this to then emit particles

User avatar
scubedio
Posts: 97
Joined: Thu Jan 11, 2007 5:17 pm
Location: mumbai

Emit particles on surface interpenetration?

Postby scubedio » Fri Aug 12, 2011 12:11 pm

Hi...bluehonda...

u can try this script.....but the object must b a Rigid Body....

import random
def onSimulationStep():
fall_obj = scene.getObject("enter ur colliding object name")
ground = scene.getObject("enter ur ground object or other object name")
emitter = scene.getEmitter("Circle01")
coll_pts = fall_obj.getCollisionPoints(ground)
for pts in coll_pts:
#vel = Vector.new(random.uniform(-1,1),random.uniform(3,0),random.uniform(1,-1))
vel = Vector.new(0,0,0)
emitter.addParticle(pts, vel)
pass
Rgds
Scubedio

https://vimeo.com/scubedio


Return to “RF4: Fluid simulation”

Who is online

Users browsing this forum: No registered users and 1 guest