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

unit(velocity)

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

-sunit
__________________
hydralab
machine film
 
  11 November 2006
thanks..

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

//s
__________________
----------------------------------------------------------
rrrRRoooGGggnnTTttuudjjuuuuu...!!!
 
  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
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 03:00 PM.


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