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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 12 December 2011   #1
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

 
Old 12 December 2011   #2
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>>;
 
__________________
www.renderwiki.com - www.openmaya.net
 
Old 12 December 2011   #3
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?
 
Old 12 December 2011   #4
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
 
Old 12 December 2011   #5
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?
 
Old 12 December 2011   #6
bump......
 
Old 12 December 2011   #7
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 08:54 AM.


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