dtUtil::SeamlessNoise Class Reference

SeamlessNoise is a noise class that creates tileable noise. More...

#include <seamlessnoise.h>

List of all members.

Public Member Functions

 SeamlessNoise (unsigned int seed=1023058)
 ~SeamlessNoise ()
void Reseed (unsigned int seed)
 Regenerates the random numbers using the given seed.
float GetNoise (const osg::Vec3f &vect_in, int repeat=-1)
 
Parameters:
vect_in a 3D Vector to hash the noise to, for 2D noise pass in a constant z value

void SetRepeat (int pRepeat)
 The SetRepeat function will allow a user to change the frequency the noise function will repeat.


Detailed Description

SeamlessNoise is a noise class that creates tileable noise.

Constructor & Destructor Documentation

dtUtil::SeamlessNoise::SeamlessNoise ( unsigned int  seed = 1023058  ) 

dtUtil::SeamlessNoise::~SeamlessNoise (  ) 


Member Function Documentation

void dtUtil::SeamlessNoise::Reseed ( unsigned int  seed  ) 

Regenerates the random numbers using the given seed.

Parameters:
seed new seed value

float dtUtil::SeamlessNoise::GetNoise ( const osg::Vec3f &  vect_in,
int  repeat = -1 
)

Parameters:
vect_in a 3D Vector to hash the noise to, for 2D noise pass in a constant z value

Parameters:
repeat pass in the frequency or the desired resolution to tile the noise in if this param is not passed in the default value will be used
Returns:
a float from -1 to 1

void dtUtil::SeamlessNoise::SetRepeat ( int  pRepeat  )  [inline]

The SetRepeat function will allow a user to change the frequency the noise function will repeat.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008