Class FractalSum

java.lang.Object
com.jme3.terrain.noise.basis.Noise
com.jme3.terrain.noise.fractal.FractalSum
All Implemented Interfaces:
Basis, Fractal

public class FractalSum extends Noise implements Fractal
FractalSum is the simplest form of fractal functions summing up a few octaves of the noise value with an ever decreasing roughness (0 to 1) amplitude lacunarity = 2.0f is the classical octave distance Note: though noise basis functions are generally designed to return value between -1..1, there sum can easily be made to extend out of this range. To handle this is up to the user.
  • Constructor Details

    • FractalSum

      public FractalSum()
  • Method Details

    • value

      public float value(float x, float y, float z)
      Specified by:
      value in interface Basis
    • addBasis

      public Fractal addBasis(Basis basis)
      Specified by:
      addBasis in interface Fractal
    • getOctaves

      public float getOctaves()
    • setOctaves

      public Fractal setOctaves(float octaves)
      Specified by:
      setOctaves in interface Fractal
    • getFrequency

      public float getFrequency()
    • setFrequency

      public Fractal setFrequency(float frequency)
      Specified by:
      setFrequency in interface Fractal
    • getRoughness

      public float getRoughness()
    • setRoughness

      public Fractal setRoughness(float roughness)
      Specified by:
      setRoughness in interface Fractal
    • getAmplitude

      public float getAmplitude()
    • setAmplitude

      public Fractal setAmplitude(float amplitude)
      Specified by:
      setAmplitude in interface Fractal
    • getLacunarity

      public float getLacunarity()
    • setLacunarity

      public Fractal setLacunarity(float lacunarity)
      Specified by:
      setLacunarity in interface Fractal
    • init

      public void init()
      Specified by:
      init in interface Basis