PDA

View Full Version : Expression_Help


HADES
06-06-2003, 01:46 PM
L need to get that expression run but not like changing at everyframe l will but more progressively like to each 20 oor 50 frame
airField1.magnitude=rand(0,0.5);
l want this not changing at everyframe how and thx

Duncan
06-06-2003, 05:25 PM
Don't use rand. Try noise instead:

float $speed = 1.0;
float $mag = 0.5;
airField1.magnitude = $mag * (noise(time*$speed)+1)/2;

Noise ranges between -1 to 1, so the added math is to make it range between 0-1.

Duncan

HADES
06-06-2003, 05:51 PM
thx duncan i ll give it a try......................

CGTalk Moderation
01-15-2006, 08:00 AM
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.