|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.post.Filter
com.jme3.water.WaterFilter
public class WaterFilter
The WaterFilter is a 2D post process that simulate water. It renders water above and under water. See this blog post for more info http://jmonkeyengine.org/2011/01/15/new-advanced-water-effect-for-jmonkeyengine-3/
入れ子のクラスの概要 |
---|
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース |
---|
Filter.Pass |
コンストラクタの概要 | |
---|---|
WaterFilter()
Create a Water Filter |
|
WaterFilter(Node reflectionScene,
Vector3f lightDirection)
|
メソッドの概要 | |
---|---|
float |
getCausticsIntensity()
get the intensity of caustics under water |
Vector3f |
getColorExtinction()
Returns the color exctinction vector of the water |
ColorRGBA |
getDeepWaterColor()
returns the deep water color |
Vector3f |
getFoamExistence()
returns the foam existance vector |
float |
getFoamHardness()
returns the foam hardness |
float |
getFoamIntensity()
returns the foam intensity |
ColorRGBA |
getLightColor()
returns the light color |
Vector3f |
getLightDirection()
gets the light direction |
float |
getMaxAmplitude()
return the maximum wave amplitude |
float |
getNormalScale()
Returns the normal scales applied to the normal map |
float |
getReflectionDisplace()
returns the reflection displace see setReflectionDisplace(float reflectionDisplace) |
int |
getReflectionMapSize()
returns the size of the reflection map |
float |
getRefractionConstant()
returns the refractoin constant |
float |
getRefractionStrength()
returns the refractionStrenght |
float |
getShininess()
return the shininess factor of the water |
float |
getShoreHardness()
Return the shoreHardeness |
float |
getSpeed()
retruns the speed of the waves |
float |
getSunScale()
gets the scale of the sun |
float |
getUnderWaterFogDistance()
returns the distance of the fog when under water |
ColorRGBA |
getWaterColor()
returns the color of the water |
float |
getWaterHeight()
gets the height of the water plane |
float |
getWaterTransparency()
returns the waterTransparency value |
float |
getWaveScale()
returns the scale factor of the waves height map |
Vector2f |
getWindDirection()
returns the wind direction |
boolean |
isUnderWater()
returns true if the camera is under the water level |
boolean |
isUseCaustics()
returns true if caustics are rendered |
boolean |
isUseFoam()
returns true if the water uses foam |
boolean |
isUseHQShoreline()
return true |
boolean |
isUseRefraction()
returns true if the water use the refraction |
boolean |
isUseRipples()
returns true if the ater use ripples |
boolean |
isUseSpecular()
returns true if the water use specular |
void |
read(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); |
void |
setCausticsIntensity(float causticsIntensity)
sets the intensity of caustics under water. goes from 0 to 1, default is 0.5f |
void |
setCausticsTexture(Texture2D causticsTexture)
sets the texture to use to render caustics on the ground underwater |
void |
setColorExtinction(Vector3f colorExtinction)
Return at what depth the refraction color extinct the first value is for red the second is for green the third is for blue Play with thos parameters to "trouble" the water default is (5.0, 20.0, 30.0f); |
void |
setDeepWaterColor(ColorRGBA deepWaterColor)
sets the deep water color see setWaterColor for general color default is (0.0039f, 0.00196f, 0.145f,1.0f) (very dark blue) |
void |
setFoamExistence(Vector3f foamExistence)
Describes at what depth foam starts to fade out and at what it is completely invisible. |
void |
setFoamHardness(float foamHardness)
Sets the foam hardness : How much the foam will blend with the shore to avoid hard edged water plane. |
void |
setFoamIntensity(float foamIntensity)
sets the foam intensity default is 0.5f |
void |
setFoamTexture(Texture2D foamTexture)
Sets the foam texture |
void |
setHeightTexture(Texture2D heightTexture)
Sets the height texture |
void |
setLightColor(ColorRGBA lightColor)
Sets the light color to use default is white |
void |
setLightDirection(Vector3f lightDirection)
Sets the light direction |
void |
setMaxAmplitude(float maxAmplitude)
Sets the maximum waves amplitude default is 1.0 |
void |
setNormalScale(float normalScale)
Sets the normal scaling factors to apply to the normal map. |
void |
setNormalTexture(Texture2D normalTexture)
Sets the normal Texture |
void |
setReflectionDisplace(float reflectionDisplace)
Sets the reflection displace. define how troubled will look the reflection in the water. default is 30 |
void |
setReflectionMapSize(int reflectionMapSize)
Sets the size of the reflection map default is 512, the higher, the better quality, but the slower the effect. |
void |
setReflectionScene(Spatial reflectionScene)
sets the scene to render in the reflection map |
void |
setRefractionConstant(float refractionConstant)
This is a constant related to the index of refraction (IOR) used to compute the fresnel term. |
void |
setRefractionStrength(float refractionStrength)
This value modifies current fresnel term. |
void |
setShininess(float shininess)
Sets the shinines factor of the water default is 0.7f |
void |
setShoreHardness(float shoreHardness)
The smaller this value is, the softer the transition between shore and water. |
void |
setSpeed(float speed)
Set the speed of the waves (0.0 is still) default is 1.0 |
void |
setSunScale(float sunScale)
Sets the scale of the sun for specular effect |
void |
setUnderWaterFogDistance(float underWaterFogDistance)
sets the distance of the fog when under water. |
void |
setUseCaustics(boolean useCaustics)
set to true if you want caustics to be rendered on the ground underwater, false otherwise |
void |
setUseFoam(boolean useFoam)
set to true to use foam with water default true |
void |
setUseHQShoreline(boolean useHQShoreline)
|
void |
setUseRefraction(boolean useRefraction)
set to true to use refraction (default is true) |
void |
setUseRipples(boolean useRipples)
Set to true tu use ripples |
void |
setUseSpecular(boolean useSpecular)
Set to true to use specular lightings on the water |
void |
setWaterColor(ColorRGBA waterColor)
Sets the color of the water see setDeepWaterColor for deep water color default is (0.0078f, 0.5176f, 0.5f,1.0f) (greenish blue) |
void |
setWaterHeight(float waterHeight)
Sets the height of the water plane default is 0.0 |
void |
setWaterTransparency(float waterTransparency)
Sets how fast will colours fade out. |
void |
setWaveScale(float waveScale)
Sets the scale factor of the waves height map the smaller the value the bigger the waves default is 0.005f |
void |
setWindDirection(Vector2f windDirection)
sets the wind direction the direction where the waves move default is (0.0f, -1.0f) |
void |
write(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); |
クラス com.jme3.post.Filter から継承されたメソッド |
---|
getName, isEnabled, setEnabled, setName |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public WaterFilter()
public WaterFilter(Node reflectionScene, Vector3f lightDirection)
メソッドの詳細 |
---|
public void write(JmeExporter ex) throws java.io.IOException
Filter
の記述:
Savable
内の write
Filter
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Filter
の記述:
Savable
内の read
Filter
内の read
java.io.IOException
public float getWaterHeight()
public void setWaterHeight(float waterHeight)
waterHeight
- public void setReflectionScene(Spatial reflectionScene)
reflectionScene
- public float getWaterTransparency()
public void setWaterTransparency(float waterTransparency)
waterTransparency
- public float getNormalScale()
public void setNormalScale(float normalScale)
normalScale
- public float getRefractionConstant()
public void setRefractionConstant(float refractionConstant)
refractionConstant
- public float getMaxAmplitude()
public void setMaxAmplitude(float maxAmplitude)
maxAmplitude
- public Vector3f getLightDirection()
public void setLightDirection(Vector3f lightDirection)
lightDirection
- public ColorRGBA getLightColor()
public void setLightColor(ColorRGBA lightColor)
lightColor
- public float getShoreHardness()
public void setShoreHardness(float shoreHardness)
shoreHardness
- public float getFoamHardness()
public void setFoamHardness(float foamHardness)
foamHardness
- public float getRefractionStrength()
public void setRefractionStrength(float refractionStrength)
refractionStrength
- public float getWaveScale()
public void setWaveScale(float waveScale)
waveScale
- public Vector3f getFoamExistence()
public void setFoamExistence(Vector3f foamExistence)
foamExistence
- public float getSunScale()
public void setSunScale(float sunScale)
sunScale
- public Vector3f getColorExtinction()
public void setColorExtinction(Vector3f colorExtinction)
colorExtinction
- public void setFoamTexture(Texture2D foamTexture)
foamTexture
- public void setHeightTexture(Texture2D heightTexture)
heightTexture
- public void setNormalTexture(Texture2D normalTexture)
normalTexture
- public float getShininess()
public void setShininess(float shininess)
shininess
- public float getSpeed()
public void setSpeed(float speed)
speed
- public ColorRGBA getWaterColor()
public void setWaterColor(ColorRGBA waterColor)
waterColour
- public ColorRGBA getDeepWaterColor()
public void setDeepWaterColor(ColorRGBA deepWaterColor)
deepWaterColor
- public Vector2f getWindDirection()
public void setWindDirection(Vector2f windDirection)
windDirection
- public int getReflectionMapSize()
public void setReflectionMapSize(int reflectionMapSize)
reflectionMapSize
- public boolean isUseFoam()
public void setUseFoam(boolean useFoam)
useFoam
- public void setCausticsTexture(Texture2D causticsTexture)
causticsTexture
- public boolean isUseCaustics()
public void setUseCaustics(boolean useCaustics)
useCaustics
- public boolean isUseHQShoreline()
public void setUseHQShoreline(boolean useHQShoreline)
public boolean isUseRefraction()
public void setUseRefraction(boolean useRefraction)
useRefraction
- public boolean isUseRipples()
public void setUseRipples(boolean useRipples)
useRipples
- public boolean isUseSpecular()
public void setUseSpecular(boolean useSpecular)
useSpecular
- public float getFoamIntensity()
public void setFoamIntensity(float foamIntensity)
foamIntensity
- public float getReflectionDisplace()
setReflectionDisplace(float reflectionDisplace)
public void setReflectionDisplace(float reflectionDisplace)
reflectionDisplace
- public boolean isUnderWater()
public float getUnderWaterFogDistance()
public void setUnderWaterFogDistance(float underWaterFogDistance)
underWaterFogDistance
- public float getCausticsIntensity()
public void setCausticsIntensity(float causticsIntensity)
causticsIntensity
-
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |