Package com.jme3.post.filters
Class RadialBlurFilter
java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.RadialBlurFilter
- All Implemented Interfaces:
Savable
Radially blurs the scene from the center of it
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.post.Filter
Filter.Pass -
Field Summary
Fields inherited from class com.jme3.post.Filter
defaultPass, enabled, material, postRenderPasses, processor -
Constructor Summary
ConstructorsConstructorDescriptionCreates a RadialBlurFilterRadialBlurFilter(float sampleDist, float sampleStrength) Creates a RadialBlurFilter -
Method Summary
Modifier and TypeMethodDescriptionprotected MaterialMust return the material used for this filter.floatDeprecated.floatreturn the sample distancefloatReturns the sample Strengthprotected voidinitFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Initialization of filter subclasses.voidread(JmeImporter im) Override this method if you want to load extra properties when the filter is loaded else only basic properties of the filter will be loaded This method should always begin by super.read(im);voidsetSampleDist(float sampleDist) Deprecated.voidsetSampleDistance(float sampleDist) sets the samples distances default is 1voidsetSampleStrength(float sampleStrength) sets the sample strength default is 2.2voidwrite(JmeExporter ex) Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved This method should always begin by super.write(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
-
Constructor Details
-
RadialBlurFilter
public RadialBlurFilter()Creates a RadialBlurFilter -
RadialBlurFilter
public RadialBlurFilter(float sampleDist, float sampleStrength) Creates a RadialBlurFilter- Parameters:
sampleDist- the distance between samplessampleStrength- the strength of each sample
-
-
Method Details
-
getMaterial
Description copied from class:FilterMust return the material used for this filter. this method is called every frame.- Specified by:
getMaterialin classFilter- Returns:
- the material used for this 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.- Returns:
- the distance
-
setSampleDist
Deprecated.- 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(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) Description copied from class:FilterInitialization of filter subclasses. This method is called once when the filter is added to the FilterPostProcessor It should contain Material initializations and extra passes initialization- Specified by:
initFilterin classFilter- Parameters:
manager- the assetManagerrenderManager- the renderManagervp- the viewPort where this filter is renderedw- the width of the filterh- the height of the filter
-
write
Description copied from class:FilterOverride this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved This method should always begin by super.write(ex);- Specified by:
writein interfaceSavable- Overrides:
writein classFilter- Parameters:
ex- the exporter (not null)- Throws:
IOException- from the exporter
-
read
Description copied from class:FilterOverride this method if you want to load extra properties when the filter is loaded else only basic properties of the filter will be loaded This method should always begin by super.read(im);- Specified by:
readin interfaceSavable- Overrides:
readin classFilter- Throws:
IOException
-
getSampleDistance()