Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Dynamics / expression help.. emission of particles from other particle
  RSS 2.0 ATOM  

expression help.. emission of particles from other particle
Rate this thread
 
38080
 
Permlink of this thread  
avatar
  • gamesed
  • Posted: 23 December 2009 12:12 AM
  • Location: Bangalore
  • Total Posts: 21
  • Joined: 26 September 2009 05:51 AM

hi, i am working on a scene where particles (lets call it particleA) are emitting from another set of particles( lets call this particleB). the problem is ,i want particleA to emit from each particle when that each particle of ParticleB attains a certain age. what i have written right now in the expression editor is

if (particleB.age (more than or equal to) 1)
{
emitterA = 100;
}
else
emitterA = 0;

But ofcourse this is wrong as it takes the average and emits at a a certain time even though the particle hasn’t achieved the age. so pls some one help me with this.
thank you,
chetan.



Chetan.V|Fx Artist
http://www.gamesedfx.com

Replies: 1
/userdata/avatar/61qumh2eq_frCG.jpg

so sorry about that, its not taking the sign for some reason

Author: gamesed

Replied: 23 December 2009 12:20 AM  
avatar
  • THNKR
  • Posted: 23 December 2009 03:28 AM

This is how you emit a particle (B, in this example) from A if A has reached the age of 2 AND A hasn’t already emitted a particle.

int $idparticleAShape.particleId;
global 
int $burned[];

if 
(particleAShape.age >2.0 && $burned[$id] == 0 ) {
 float $pos[] 
particleAShape.position;
 
emit -position $pos[0] $pos[1] $pos[2] -object particleB;
 
$burned[$id] 1;
}


Replies: 1
/userdata/avatar/61qumh2eq_frCG.jpg

hi, thanks .. i got what i was looking for.. had made some stupid mistake....but any ways thanks fr giving ur time for this..

Author: gamesed

Replied: 23 December 2009 06:53 AM