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
Old 11 November 2006   #1

Hi.. i have some particles moving along a surface with a noise function..
is there any way to retrieve a direction vector..

like this:

i guess you need to do some kind of comparison between frames to get it's travelling
direction..? some cross product action going on?
a little help please.. i suck at this

Old 11 November 2006   #2
the average direction vector would simply be the difference between where it will be at time t + n and where it is at t. You select the n and per particle position will give you positons...
Old 11 November 2006   #3
velocity will give you the directional speed (speed & direction).

vector $vel = velocity;

normalizing/unitizing velocity:


will give you the same direction vector, just with a length of 1.

machine film
Old 11 November 2006   #4

yup, the velocity attribute was the way to go..

Old 11 November 2006   #5
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 05:42 AM.

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