PDA

View Full Version : Single particle moving across surface.


siddu9000
08-01-2004, 10:54 PM
Greetings! Im trying to simulate the dreaded water/sweat/blood drop running down a surface.
What im trying to achieve is a single drop of liquid and not particles that keep emmitting from an emmiter over a surface.
To do this i tried creating a single particle by sketching it and set the nurbs surface as its goal.
What happens afterwards is wacky. No matter what i do in the PP expressions, the thing refuses to move! No fields affect it no expressions move it.
What am i doing wrong? Please help.
thanks.

Sanctuary
08-02-2004, 02:17 PM
can you post the scene ?

mattswilson
08-02-2004, 06:12 PM
Hey,
in the scene, I just did a quick script to attach the initial particle to the object and slide it down. I threw a parameter in for U sliding too but didn't bother normalizing it to the start position in UV, so you will see it skip. I told the particle not to move in UV until a given age(2 seconds) so when the animation starts you see the particle in its birth position(Just created with the make particle tool), then it jumps to its start position (its initial goal PP), waits and then moves on its way. Oh, there is also a particle stream beign emitted by the base particle, there is a line for its emission in the script too ("trail.rate").


here's the simple expression:

seedShape.goalV = 1;
seedShape.goalU = 1;
float $U = seedShape.goalU;
float $V = seedShape.goalV;
float $startTime = 2;
float $Nm;

if (seedShape.age > $startTime){
$U = 1 - linstep(0,1,((seedShape.age - $startTime)/10));
$Nm = $V + (sin(time) / 10);
trail.rate = 10;
}else{
$Nm = 1;
trail.rate = 0;
}


seedShape.goalV = $Nm;
seedShape.goalU = $U;

float $gpp;
if (seedShape.goalU < .2){
$gpp = 1 - linstep(0,1,seedShape.age);
}else{
$gpp = 1;
}
seedShape.goalPP = $gpp;

if (seedShape.goalPP < .1){
trail.rate = 0;
}

and a movie example:
drip example movie (http://www.velatura.com/Warped/dripexample.mov)

Ranjan1980
08-02-2004, 06:14 PM
Siddu You can draw a curve on surface. Create a Omni emitter . Attach the emitter on the curve as motion path . For the particles use OpacittyPP. So it will fade Out. U will feel like particle is moving on the surface.

siddu9000
08-03-2004, 07:40 PM
awesome, thanks for all your replies.Gonna try it out now.

CGTalk Moderation
01-18-2006, 08:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.