Class RadialBlurFilter

java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.RadialBlurFilter
All Implemented Interfaces:
com.jme3.export.Savable

public class RadialBlurFilter extends com.jme3.post.Filter
Radially blurs the scene from the center of it
Author:
Rémy Bouquet aka Nehon
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.jme3.post.Filter

    com.jme3.post.Filter.Pass
  • Field Summary

    Fields inherited from class com.jme3.post.Filter

    defaultPass, enabled, material, postRenderPasses, processor
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a RadialBlurFilter
    RadialBlurFilter(float sampleDist, float sampleStrength)
    Creates a RadialBlurFilter
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.jme3.material.Material
     
    float
    Deprecated.
    float
    return the sample distance
    float
    Returns the sample Strength
    protected void
    initFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h)
     
    void
    read(com.jme3.export.JmeImporter im)
     
    void
    setSampleDist(float sampleDist)
    void
    setSampleDistance(float sampleDist)
    sets the samples distances default is 1
    void
    setSampleStrength(float sampleStrength)
    sets the sample strength default is 2.2
    void
    write(com.jme3.export.JmeExporter ex)
     

    Methods inherited from class com.jme3.post.Filter

    cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresDepthTexture, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RadialBlurFilter

      public RadialBlurFilter()
      Creates a RadialBlurFilter
    • RadialBlurFilter

      public RadialBlurFilter(float sampleDist, float sampleStrength)
      Creates a RadialBlurFilter
      Parameters:
      sampleDist - the distance between samples
      sampleStrength - the strength of each sample
  • Method Details

    • getMaterial

      protected com.jme3.material.Material getMaterial()
      Specified by:
      getMaterial in class com.jme3.post.Filter
    • getSampleDistance

      public float getSampleDistance()
      return the sample distance
      Returns:
      the distance
    • setSampleDistance

      public void setSampleDistance(float sampleDist)
      sets the samples distances default is 1
      Parameters:
      sampleDist - the desired distance (default=1)
    • getSampleDist

      @Deprecated public float getSampleDist()
      Deprecated.
      Returns:
      the distance
    • setSampleDist

      @Deprecated public void setSampleDist(float sampleDist)
      Parameters:
      sampleDist - the desired distance (default=1)
    • getSampleStrength

      public float getSampleStrength()
      Returns the sample Strength
      Returns:
      the strength value
    • setSampleStrength

      public void setSampleStrength(float sampleStrength)
      sets the sample strength default is 2.2
      Parameters:
      sampleStrength - the desired strength (default=2.2)
    • initFilter

      protected void initFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h)
      Specified by:
      initFilter in class com.jme3.post.Filter
    • write

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

      public void read(com.jme3.export.JmeImporter im) throws IOException
      Specified by:
      read in interface com.jme3.export.Savable
      Overrides:
      read in class com.jme3.post.Filter
      Throws:
      IOException