Page 1 of 2

emit particle from particle

Posted: Wed Oct 27, 2010 4:51 am
by bluehonda
Hi! everyone.

I need to emit particles from another particle. to create a particle trail of some sort.
does anyone know of a script that can do this??? i need to make water droplets dripping from a cold drink.

if you have ideas. don't hesitate to let me know.

thanks!

emit particle from particle

Posted: Wed Oct 27, 2010 7:03 am
by bubs
why just don't use your regular particle system in your main 3d apps?
cheers

emit particle from particle

Posted: Wed Oct 27, 2010 10:08 am
by Thoth
You can create particle trail with this script.

Code: Select all

def onSimulationFrame():

   particles = Circle01.getParticles()
   emitter = scene.getEmitter("trail")
   
   for particle in particles:
      ppos = particle.getPosition()
      emitter.addParticle(ppos, Vector.new(0,0,0))

emit particle from particle

Posted: Wed Oct 27, 2010 10:38 am
by bluehonda
@Thoth - Hi! thanks for the script. works well. thou is there a way to add a multiplier somewhere? cause right now it adds one particle per frame. and thinking of adding lots particles as trails.

@bubs - i wanna use RF because it makes better mesh. And better Liquid sims.

emit particle from particle

Posted: Wed Oct 27, 2010 11:10 am
by Thoth

Code: Select all

def onSimulationFrame():

   numberOfParticles = 2


   particles = Circle01.getParticles()
   emitter = scene.getEmitter("trail")
   for particle in particles:
      ppos = particle.getPosition()
      for k in range (0, numberOfParticles):
         emitter.addParticle(ppos, Vector.new(0,0,0))

emit particle from particle

Posted: Wed Oct 27, 2010 11:12 am
by Thoth
just change "numberOfParticles" variable :)

emit particle from particle

Posted: Thu Oct 28, 2010 4:14 am
by bluehonda
@Thoth - It works great! Thanks. I really appreciate your help.

emit particle from particle

Posted: Thu Oct 28, 2010 5:06 am
by bluehonda
heres what i got - [video][/video]

@Thoth - thanks again.

emit particle from particle

Posted: Thu Oct 28, 2010 9:37 am
by calvin
cannot view your video. the embedded url points to a local file on drive L. any YT links available? thanks!

emit particle from particle

Posted: Fri Oct 29, 2010 1:49 am
by bluehonda
http://www.youtube.com/watch?v=OJPCzXxOzlY

-try this one. thanks for looking.