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
  11 November 2006

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

  11 November 2006
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...
  11 November 2006
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
  11 November 2006

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

  11 November 2006
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:12 PM.

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