Jump to content

control freq of random


Recommended Posts

Hi

Is 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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...