mm..vectors

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 11 November 2006   #1
mm..vectors

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

thanks
//s
__________________
----------------------------------------------------------
rrrRRoooGGggnnTTttuudjjuuuuu...!!!
 
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:

unit(velocity)

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

-sunit
__________________
hydralab
machine film
 
Old 11 November 2006   #4
thanks..

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

//s
__________________
----------------------------------------------------------
rrrRRoooGGggnnTTttuudjjuuuuu...!!!
 
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.
 
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 09:11 AM.


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