This module can be used to generate noise of various types. This can
be used for terrain generation, to create textures, make animations
more 'animated', object deformation, etc. As an example, this code
segment when scriptlinked to a framechanged event, will make the camera
sway randomly about, by changing parameters this can look like anything
from an earthquake to a very nervous or maybe even drunk cameraman...
(the camera needs an ipo with at least one Loc & Rot key for this
to work!):
Example:
Function Summary |
float
|
cellNoise (xyz)
Returns cellnoise. |
3-float list
|
cellNoiseV (xyz)
Returns cellnoise vector/point/color. |
float
|
fBm (xyz,
H,
lacunarity,
octaves,
basis)
Returns Fractal Brownian Motion noise value (fBm). |
float
|
heteroTerrain (xyz,
H,
lacunarity,
octaves,
offset,
basis)
Returns Heterogeneous Terrain value. |
float
|
hybridMFractal (xyz,
H,
lacunarity,
octaves,
offset,
gain,
basis)
Returns Hybrid Multifractal value. |
float
|
multiFractal (xyz,
H,
lacunarity,
octaves,
basis)
Returns Multifractal noise value. |
float
|
noise (xyz,
type)
Returns general noise of the optional specified type. |
float
|
random ()
Returns a random floating point number." |
3-float list
|
randuvec ()
Returns a random unit vector. |
float
|
ridgedMFractal (xyz,
H,
lacunarity,
octaves,
offset,
gain,
basis)
Returns Ridged Multifractal value. |
|
setRandomSeed (seed)
Initializes the random number generator. |
float
|
turbulence (xyz,
octaves,
hard,
basis,
ampscale,
freqscale)
Returns general turbulence value using the optional specified noise
'basis' function. |
float
|
vlNoise (xyz,
distortion,
type1,
type2)
Returns Variable Lacunarity Noise value, a distorted variety of
noise. |
3-float list
|
vNoise (xyz,
type)
Returns noise vector of the optional specified type. |
list
|
voronoi (xyz,
distance_metric,
exponent)
Returns Voronoi diagrams-related data. |
3-float list
|
vTurbulence (xyz,
octaves,
hard,
basis,
ampscale,
freqscale)
Returns general turbulence vector using the optional specified noise
basis function. |