Class SimpleLodThreshold

java.lang.Object
com.jme3.terrain.geomipmap.lodcalc.SimpleLodThreshold
All Implemented Interfaces:
com.jme3.export.Savable, LodThreshold, Cloneable

public class SimpleLodThreshold extends Object implements LodThreshold
Just multiplies the terrain patch size by 2. So every two patches away the camera is, the LOD changes. Set it higher to have the LOD change less frequently.
Author:
bowens
  • Constructor Details

    • SimpleLodThreshold

      public SimpleLodThreshold()
    • SimpleLodThreshold

      public SimpleLodThreshold(Terrain terrain)
    • SimpleLodThreshold

      public SimpleLodThreshold(int patchSize, float lodMultiplier)
  • Method Details

    • getLodMultiplier

      public float getLodMultiplier()
    • setLodMultiplier

      public void setLodMultiplier(float lodMultiplier)
    • getSize

      public int getSize()
    • setSize

      public void setSize(int size)
    • getLodDistanceThreshold

      public float getLodDistanceThreshold()
      Description copied from interface: LodThreshold
      A distance of how far between each LOD threshold.
      Specified by:
      getLodDistanceThreshold in interface LodThreshold
    • write

      public void write(com.jme3.export.JmeExporter ex) throws IOException
      Specified by:
      write in interface com.jme3.export.Savable
      Throws:
      IOException
    • read

      public void read(com.jme3.export.JmeImporter im) throws IOException
      Specified by:
      read in interface com.jme3.export.Savable
      Throws:
      IOException
    • clone

      public LodThreshold clone()
      Specified by:
      clone in interface LodThreshold
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object