OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::Volume::SimplexNoise Class Reference

Simplex Noise ported from public domain Java Implementation http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise.java Thanks Stefan Gustavson! More...

#include <OgreVolumeSimplexNoise.h>

Public Member Functions

 SimplexNoise (unsigned long definedSeed)
 Constructor with a by seed defined permutation table.
 
 SimplexNoise (void)
 Constructor with a random permutation table.
 
long getSeed (void) const
 Gets the current seed.
 
Real noise (Real xIn, Real yIn, Real zIn) const
 3D noise function.
 

Detailed Description

Simplex Noise ported from public domain Java Implementation http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise.java Thanks Stefan Gustavson!

Constructor & Destructor Documentation

◆ SimplexNoise() [1/2]

Ogre::Volume::SimplexNoise::SimplexNoise ( void  )

Constructor with a random permutation table.

◆ SimplexNoise() [2/2]

Ogre::Volume::SimplexNoise::SimplexNoise ( unsigned long  definedSeed)

Constructor with a by seed defined permutation table.

Parameters
definedSeedThe seed to use.

Member Function Documentation

◆ getSeed()

long Ogre::Volume::SimplexNoise::getSeed ( void  ) const

Gets the current seed.

Returns
The current seed.

◆ noise()

Real Ogre::Volume::SimplexNoise::noise ( Real  xIn,
Real  yIn,
Real  zIn 
) const

3D noise function.

Parameters
xInThe first dimension parameter.
yInThe second dimension parameter.
zInThe third dimension parameter.
Returns
The noise value.

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