#include <ddgnoise.h>
Static Public Members | |||
double | noise1 (double point) | ||
Generate noise value for a 1D location. More... | |||
double | noise2 (double *point) | ||
Generate noise value for a 2D location. More... | |||
double | noise3 (double *point) | ||
Generate noise value for a 3D location. More... | |||
double | noise (double *point, int len) | ||
General noise function calls the previous 3 depending on len. More... | |||
double | turbulence (double *point, double freq) | ||
Generate turbulent noise across a number of octaves. More... | |||
double | onoise (double *point, double freq) | ||
Noise across a number of octaves. More... | |||
double | cloud ( double *point, double freq, int cc, double cs ) | ||
Cloud noise with cloud cover and cloudsharpness. More... | |||
double | fBm ( double* point, double H, double lacunarity, double octaves) | ||
Fractal brownian motion. More... | |||
double | multifractal ( double* point, double H, double lacunarity, double octaves, double offset ) | ||
Multifractal function H range fractal dimension 1.0 - 0.0 where 0.0 is total chaos. More... | |||
double | hybridmultifractal ( double* point, double H, double lacunarity, double octaves, double offset ) | ||
Multifractal function H range fractal dimension 1.0 - 0.0 where 0.0 is total chaos. More... | |||
double | four_noise (double* point, double time) | ||
4D Noise. More... |
double ddgNoise::noise1 (double point) [static]
|
Generate noise value for a 1D location.
Returns values between -1.0 and 1.0.
double ddgNoise::noise2 (double * point) [static]
|
Generate noise value for a 2D location.
Returns values between -1.0 and 1.0.
double ddgNoise::noise3 (double * point) [static]
|
Generate noise value for a 3D location.
Returns values between -1.0 and 1.0.
double ddgNoise::noise (double * point, int len) [static]
|
General noise function calls the previous 3 depending on len.
Input range from 0 to 3 works well. Returns values between -1.0 and 1.0.
double ddgNoise::turbulence (double * point, double freq) [static]
|
Generate turbulent noise across a number of octaves.
Returns values between -1.0 and 1.0.
double ddgNoise::onoise (double * point, double freq) [static]
|
Noise across a number of octaves.
Returns values between -1.0 and 1.0.
double ddgNoise::cloud (double * point, double freq, int cc, double cs) [static]
|
Cloud noise with cloud cover and cloudsharpness.
cc - cloud cover from 0.0 (total) to 1.0 (empty). cs - cloud sharpness from 0.0 to 1.0. Returns values between 0.0 and 1.0.
double ddgNoise::fBm (double * point, double H, double lacunarity, double octaves) [static]
|
Fractal brownian motion.
H range fractal dimension 1.0 - 0.0 where 0.0 is total chaos. lacunarity gap between successive frequencies, use 2.0 Octaves is the number of frequencies in the fBm. 3-7 Returns values between -1.0 and 1.0.
double ddgNoise::multifractal (double * point, double H, double lacunarity, double octaves, double offset) [static]
|
Multifractal function H range fractal dimension 1.0 - 0.0 where 0.0 is total chaos.
lacunarity gap between successive frequencies, use 2.0 Octaves is the number of frequencies in the fBm. 3-7 offset is the zero offset, which determines multifractality. eg. 0.3 Returns values between -n and n.
double ddgNoise::hybridmultifractal (double * point, double H, double lacunarity, double octaves, double offset) [static]
|
Multifractal function H range fractal dimension 1.0 - 0.0 where 0.0 is total chaos.
Eg 0.25 lacunarity gap between successive frequencies, use 2.0 Octaves is the number of frequencies in the fBm. 3-7 offset is the zero offset, which determines multifractality. eg. 0.7 Returns values between -n and n.
double ddgNoise::four_noise (double * point, double time) [static]
|
4D Noise.
Input values between 0 to 5. Time between 0 and 10. Returns values between 0.0 and 1.0