Mel expression - PP procedural animation

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  12 December 2011
Mel expression - PP procedural animation

Hi, First post on here - hope its in the right place.

I'm looking (to begin with) to simply create a PP expression that can make a particle move in
a straight line (with no end point) just continuous forward motion. I have no idea where to begin
as i've never used a PP for specific motion (only rand motion using sin etc)

This is the first step and a long as i can get this to work eventually i would like to make the expression to allow the particle to gradually curve etc.

Any help or advice anyone could give would be greatly appreciated

  12 December 2011
Well, you can give the particles a velocity in a certain direction with something like:

velocity = <<1,0,0>>;

Or you place them manually in the predynamics script:

vector $p=position;
float $speed = .1;
position = <<$p.x + $speed , $p.y, $p.z>>;
__________________ -
  12 December 2011
Yeah thats just what i was after - but what would i do if i wanted to make it slowly curve (without using an acutal curve) is it possible?
  12 December 2011
Just add a smaller amount to the Y or Z components (smaller to make the curve gradual). That will give it a circular path, the smaller the increments, the larger the radius.

If you want more complex curves, you need a more complex equation.

<* Wes *>
i7 2.8ghz w7pro 8gb quadro 4000 w/270.51 driver, 600 GB SSD C: Drive
  12 December 2011
but wont just reducing the amount in the velocity make it move slower in a linear direction? do i need a different pp or expression to make the particle curve?
  12 December 2011
  12 December 2011
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:57 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.