arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

PNoise.h File Reference

Go to the source code of this file.

Compounds

class  PNoise

Defines

#define AFX_PNOISE_H__C1CDB3F2_6FDA_49C8_BF27_1DEDA73F3EE5__INCLUDED_

Functions

void gen2DPerlinTexture (float *&data, unsigned int sx, unsigned int sy, unsigned int components, int octaves=4, float frequencyScale=2, float amplitudeScale=2, bool absNoise=false)
 generate a texture with perlin noise allocates space for you, new range is always [0-1]

void gen3DPerlinTexture (float *&data, unsigned int sx, unsigned int sy, unsigned int sz, unsigned int components, int octaves=4, float frequencyScale=2, float amplitudeScale=2, bool absNoise=false)
 absolute value noise


Define Documentation

#define AFX_PNOISE_H__C1CDB3F2_6FDA_49C8_BF27_1DEDA73F3EE5__INCLUDED_
 

Definition at line 24 of file PNoise.h.


Function Documentation

void gen2DPerlinTexture float *&  data,
unsigned int  sx,
unsigned int  sy,
unsigned int  components,
int  octaves = 4,
float  frequencyScale = 2,
float  amplitudeScale = 2,
bool  absNoise = false
 

generate a texture with perlin noise allocates space for you, new range is always [0-1]

Parameters:
octaves  greyscale, RGBA, how many??

Definition at line 439 of file PNoise.cpp.

References data, PNoise::seed(), PNoise::setParams(), x, and y.

void gen3DPerlinTexture float *&  data,
unsigned int  sx,
unsigned int  sy,
unsigned int  sz,
unsigned int  components,
int  octaves = 4,
float  frequencyScale = 2,
float  amplitudeScale = 2,
bool  absNoise = false
 

absolute value noise

Parameters:
octaves  greyscale, RGBA, how many??

Definition at line 477 of file PNoise.cpp.

References data, PNoise::seed(), PNoise::setParams(), x, y, and z.


Send questions, comments, and bug reports to:
jmk