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:
float
|
|
3-float list
|
|
|
|
float
|
noise(xyz,
type=1)
Returns general noise of the optional specified type. |
source code
|
|
3-float list
|
|
float
|
turbulence(xyz,
octaves,
hard,
basis=1,
ampscale=0.5,
freqscale=2.0)
Returns general turbulence value using the optional specified
noise 'basis' function. |
source code
|
|
|
vTurbulence(xyz,
octaves,
hard,
basis=1,
ampscale=0.5,
freqscale=2.0)
Returns general turbulence vector using the optional specified noise basis
function. |
source code
|
|
float
|
fBm(xyz,
H,
lacunarity,
octaves,
basis=1)
Returns Fractal Brownian Motion noise value (fBm). |
source code
|
|
float
|
|
float
|
vlNoise(xyz,
distortion,
type1=1,
type2=1)
Returns Variable Lacunarity Noise value, a distorted variety of
noise. |
source code
|
|
float
|
|
float
|
|
float
|
|
list
|
voronoi(xyz,
distance_metric=0,
exponent=2.5)
Returns Voronoi diagrams-related data. |
source code
|
|
float
|
|
3-float list
|
|