sky Posted May 22, 2003 Share Posted May 22, 2003 Hi Is there a way control frequency of random function ? for any random function, rand, noise, snoise().. Thanks Quote Link to comment Share on other sites More sharing options...
crunch Posted May 22, 2003 Share Posted May 22, 2003 HiIs there a way control frequency of random function ? for any random function, rand, noise, snoise().. Thanks If I understand this, the way to do this would be to have a PDF (Probability Density Function), then use the rand() function to lookup a value in the PDF. This would allow you to get gaussian distributions or other distributions out of the rand() function. If you're actually talking about spatial frequency, then I think the rand() function is un-correlated. In effect, the random() function has infinite frequency (white noise), so there's no way to change this. If you're looking for something like the prman cellnoise() function, you should be able to simply take the floor of the sample, giving you an integer lattice. Then you can control the frequency of the integer lattice by scaling the sample. Quote Link to comment Share on other sites More sharing options...
Marc Posted May 22, 2003 Share Posted May 22, 2003 If you have an expression that looks like this : sturb($TX,$TY,$TZ,1) then all you need to do is multiply the internal values by an arbitrary number to increase the frequency. So the format is : sturb(freq X, freq Y, freq Z, depth). So sturb($TX*2, $TY*2, $TZ*2,1) will increase the frequency of the turbulent noise by 2. This applies to turb(), noise() and snoise() too. And like crunch said, there is no way to affect the output of rand() (as far as I know anyway).... Cheers Marc Quote Link to comment Share on other sites More sharing options...
sky Posted May 24, 2003 Author Share Posted May 24, 2003 Thanks crunch, Marc It help me to understand noise. Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.