The Blender.Noise submodule.
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!):
float
|
random()
Returns a random floating point number." |
|
|
3-float list
|
randuvec()
Returns a random unit vector. |
|
|
|
|
float
|
noise(xyz,
type=1)
Returns general noise of the optional specified type. |
|
|
3-float list
|
vNoise(xyz,
type=1)
Returns noise vector of the optional specified type. |
|
|
float
|
turbulence(xyz,
octaves,
hard,
basis=1,
ampscale=0.5,
freqscale=2.0)
Returns general turbulence value using the optional specified noise
'basis' function. |
|
|
3-float list
|
vTurbulence(xyz,
octaves,
hard,
basis=1,
ampscale=0.5,
freqscale=2.0)
Returns general turbulence vector using the optional specified noise
basis function. |
|
|
float
|
fBm(xyz,
H,
lacunarity,
octaves,
basis=1)
Returns Fractal Brownian Motion noise value (fBm). |
|
|
float
|
multiFractal(xyz,
H,
lacunarity,
octaves,
basis=1)
Returns Multifractal noise value. |
|
|
float
|
vlNoise(xyz,
distortion,
type1=1,
type2=1)
Returns Variable Lacunarity Noise value, a distorted variety of
noise. |
|
|
float
|
heteroTerrain(xyz,
H,
lacunarity,
octaves,
offset,
basis=1)
Returns Heterogeneous Terrain value. |
|
|
float
|
hybridMFractal(xyz,
H,
lacunarity,
octaves,
offset,
gain,
basis=1)
Returns Hybrid Multifractal value. |
|
|
float
|
ridgedMFractal(xyz,
H,
lacunarity,
octaves,
offset,
gain,
basis=1)
Returns Ridged Multifractal value. |
|
|
list
|
voronoi(xyz,
distance_metric=0,
exponent=2.5)
Returns Voronoi diagrams-related data. |
|
|
float
|
|
3-float list
|
cellNoiseV(xyz)
Returns cellnoise vector/point/color. |
|
|