3 ms·
Your description is accurate, but the most important part to know is that the random values on the lattice are used as the derivatives of the noise function. Th
by dahart 10y ago
Your description is accurate, but the most important part to know is that the random values on the lattice are used as the derivatives of the noise function. The noise function itself is then an itegral of those derivates. By putting the derivatives at the lattice points, the grid structure underneath becomes far less visible. If you used the random values directly, and just interpolated those using a spline, you get a 0-value derivative at exactly every lattice point, and you end up seeing the grid structure in the result, it becomes glaringly apparent. Using Perlin noise, the minima and maxima are offset randomly from the grid, making the overall function feel much more natural.
It's useful any time you need some natural looking randomness in a texture. Perlin noise is standard in pretty much all 3d rendering software for films, and it's becoming quite common for games.
The turbulence part of this is when you take a whole stack of Perlin noises at different frequencies, i.e., different grid sizes, and sum them. It's more expensive of course, but this is how to get extremely realistic feeling noise, it gives you medium and high frequencies. And it further hides any grid artifacts.
I used Perlin noise as a wind function to animate bushes & trees in the animated movie Madagascar. Perlin actually works really well for windy looking motion because of the way it's derviatives work. I tried a whole bunch of other noise functions, and Perlin was the only one that worked well.