Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Noise Settings

Jordan Peck edited this page Mar 14, 2017 · 3 revisions

General

int GetSeed()

Returns seed


void SetSeed(int seed)

Used in all noise generation


void SetFrequency(float frequency)

Used in all noise generation except White Noise


void SetNoiseType(NoiseType noiseType)

Sets the type of noise returned by GetNoise()

Possible noise types:

  • Value
  • ValueFractal
  • Gradient
  • GradientFractal
  • Simplex
  • SimplexFractal
  • WhiteNoise
  • Cellular
  • Cubic
  • CubicFractal

void SetAxisScales(float xScale, float yScale, float zScale)

Used to scale individual axis when filling or getting a noise set.

This does not effect vector sets.

Fractal

void SetFractalOctaves(unsigned int octaves)

Used in all fractal noise generation


void SetFractalLacunarity(float lacunarity)

Used in all fractal noise generation


void SetFractalGain(float gain)

Used in all fractal noise generation


void SetFractalType(FractalType fractalType)

Used in all fractal noise generation

Possible fractal types:

  • FBM
  • Billow
  • RigidMulti

Cellular

void SetCellularDistanceFunction(CellularDistanceFunction cellularDistanceFunction)

The distance function used to calculate the cell for a given point

Possible distance functions:

  • Euclidean
  • Manhattan
  • Natural

(Natural is a blend of Euclidean and Manhattan to give curved cell boundaries)


void SetCellularReturnType(CellularReturnType cellularReturnType)

What value does the function return from its calculations

Possible return types:

  • CellValue
  • Distance
  • Distance2
  • Distance2Add
  • Distance2Sub
  • Distance2Mul
  • Distance2Div

Only CellValue is bounded between -1.0 and 1.0, all distance return types have a minimum of -1.0 and varying maximums

Clone this wiki locally