Class 8: Wave generators, random numbers, noise

sine wave

square wave

sawtooth

Fourier

Repeating a waveform

Ways to create overlap:

Wave generation

Create rect., sawtooth, sin, etc. pulses with these controls:
* t - wave parameter
* s - shape
* f - freq.
* a - ampl.

Given a pt (x,y,z), here are three ways to get t:

t = ax+by+cz 

t = sqrt(sq(ay-bx)+sq(bz-cy)+sq(cx-az)) 

t = sqrt(x*x+y*y+z*z)

Noise, turbulence..

Wavelet noise

Cell noise

Also see this link..

Random numbers

LCG

Sampling