trickman wrote:
Could you tell me what do the values do?
These values are inputs to a
Perlin Noise function which generates psudeo random values that determine the look of the clouds.
Frequency gives you number of noise values defined between each 2-dimensional point.
Persistence is a constant multiplier adjusting our amplitude in each iteration.
Octaves define the number of iterations over the noise function for a particular point. With each iteration, the frequency is doubled and the amplitude is multiplied by the persistance.
Amplitude is the maximum value added to the total noise value.
Those variables act within the perlin noise function to generate a cumalative total. There are two other user adjustable variables that act upon the total after the noise function that help in defining the finished look of your scene.
Cloud Coverage is a constant that gets added (or subtracted) to each total. The default value is zero, meaning that the total should not be altered. Adding values will increase the size of the clouds, while subtracting will reduce them.
Cloud Density is a constant that gets multiplied with the total to increase or decrease the apparent thickness of the clouds. The default value is 1, meaning the total should not be altered. Any number between 0 and 1 will reduce the apparent density (making the clouds appear more like fog).
More information on the Code Lab implementation can be found in my blog entry at:
http://www.sepcot.com/blog/2006/08-2006-PDN-PerlinNoise2d.shtml