OpenSceneGraph  3.5.1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osgUtil::PerlinNoise Class Reference

Public Member Functions

 PerlinNoise ()
 
void SetNoiseFrequency (int frequency)
 
double noise1 (double arg)
 
double noise2 (double vec[2])
 
double noise3 (double vec[3])
 
void normalize2 (double vec[2])
 
void normalize3 (double vec[3])
 
double PerlinNoise1D (double x, double alpha, double beta, int n)
 
double PerlinNoise2D (double x, double y, double alpha, double beta, int n)
 
double PerlinNoise3D (double x, double y, double z, double alpha, double beta, int n)
 
osg::Imagecreate3DNoiseImage (int texSize)
 
osg::Texture3Dcreate3DNoiseTexture (int texSize)
 

Protected Types

enum  { MAXB = 0x100 }
 

Protected Member Functions

void initNoise (void)
 

Protected Attributes

int p [MAXB+MAXB+2]
 
double g3 [MAXB+MAXB+2][3]
 
double g2 [MAXB+MAXB+2][2]
 
double g1 [MAXB+MAXB+2]
 
int start
 
int B
 
int BM
 

Member Enumeration Documentation

anonymous enum
protected
Enumerator
MAXB 

Constructor & Destructor Documentation

osgUtil::PerlinNoise::PerlinNoise ( )

Member Function Documentation

osg::Image* osgUtil::PerlinNoise::create3DNoiseImage ( int  texSize)
osg::Texture3D* osgUtil::PerlinNoise::create3DNoiseTexture ( int  texSize)
void osgUtil::PerlinNoise::initNoise ( void  )
protected
double osgUtil::PerlinNoise::noise1 ( double  arg)
double osgUtil::PerlinNoise::noise2 ( double  vec[2])
double osgUtil::PerlinNoise::noise3 ( double  vec[3])
void osgUtil::PerlinNoise::normalize2 ( double  vec[2])
void osgUtil::PerlinNoise::normalize3 ( double  vec[3])
double osgUtil::PerlinNoise::PerlinNoise1D ( double  x,
double  alpha,
double  beta,
int  n 
)
double osgUtil::PerlinNoise::PerlinNoise2D ( double  x,
double  y,
double  alpha,
double  beta,
int  n 
)
double osgUtil::PerlinNoise::PerlinNoise3D ( double  x,
double  y,
double  z,
double  alpha,
double  beta,
int  n 
)
void osgUtil::PerlinNoise::SetNoiseFrequency ( int  frequency)

Member Data Documentation

int osgUtil::PerlinNoise::B
protected
int osgUtil::PerlinNoise::BM
protected
double osgUtil::PerlinNoise::g1[MAXB+MAXB+2]
protected
double osgUtil::PerlinNoise::g2[MAXB+MAXB+2][2]
protected
double osgUtil::PerlinNoise::g3[MAXB+MAXB+2][3]
protected
int osgUtil::PerlinNoise::p[MAXB+MAXB+2]
protected
int osgUtil::PerlinNoise::start
protected

The documentation for this class was generated from the following file:

osg logo
Generated at Wed Nov 11 2015 22:15:17 for the OpenSceneGraph by doxygen 1.8.10.