How to repeat noise in given time? #7
Answered
by
stegu
tgrajewski
asked this question in
Q&A
Replies: 2 comments
-
|
I think many of the demos use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
How to make the rotations repeat depends on how you use the 'time'
parameter. You must find a common period for all rotations and wrap the
uniform input value to that.
If one component of noise uses 2*pi*time for the 'alpha' rotation, another
2*pi*time*0.1 and a third uses 2*pi*time/15.0, all expressions will attain
an even multiple of 2*pi at time=30, thus you can send a uniform 'time'
that wraps at 30 seconds to avoid the bad precision with large values for
'time'.
If you use factors that have common primes, like time*2*pi/2^k, 0<=k<=N,
all rotations will wrap at time=2^N. Noise is often used as a sum of
components that scale by some power series, 2^k or sqrt(2)^k, both in terms
of the spatial and the temporal scaling (size and speed).
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stegu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that all examples and tutorials use incrementing
timeuniform, which grows to infinity slowly.Is there a way to wrap the
timevalue, so that it the noise repeats itself seamlessly after N seconds?Beta Was this translation helpful? Give feedback.
All reactions