|
@@ -8,9 +8,11 @@
|
|
|
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
jME3 supports several types of special effects: Post-Processor Filters, SceneProcessors, and Particle Emitters (also known as particle systems). This list contains screenshots and links to sample code that demonstrates how to add the effect to a scene.
|
|
jME3 supports several types of special effects: Post-Processor Filters, SceneProcessors, and Particle Emitters (also known as particle systems). This list contains screenshots and links to sample code that demonstrates how to add the effect to a scene.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
== Sample Code
|
|
== Sample Code
|
|
|
|
|
|
|
|
* There is one `com.jme3.effect.ParticleEmitter` class for all Particle Systems.
|
|
* There is one `com.jme3.effect.ParticleEmitter` class for all Particle Systems.
|
|
@@ -18,6 +20,8 @@ jME3 supports several types of special effects: Post-Processor Filters, ScenePro
|
|
|
* There are several `SceneProcessor` classes in various packages, including e.g. `com.jme3.shadow.` and `com.jme3.water.` (SceneProcessor have `Processor` or `Renderer` in their names).
|
|
* There are several `SceneProcessor` classes in various packages, including e.g. `com.jme3.shadow.` and `com.jme3.water.` (SceneProcessor have `Processor` or `Renderer` in their names).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
=== Particle Emitter
|
|
=== Particle Emitter
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -38,6 +42,7 @@ public class MyGame extends SimpleApplication {
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Scene Processor
|
|
=== Scene Processor
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -55,6 +60,7 @@ public class MyGame extends SimpleApplication {
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Post-Processor Filter
|
|
=== Post-Processor Filter
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -110,7 +116,6 @@ image:jme3/advanced/underwater2.jpg[underwater2.jpg,width="150",height="100",ali
|
|
|
|
|
|
|
|
=== Depth of Field Blur
|
|
=== Depth of Field Blur
|
|
|
|
|
|
|
|
-
|
|
|
|
|
[.right]
|
|
[.right]
|
|
|
image:jme3/advanced/dof-blur.png[dof-blur.png,width="150",height="100"] +
|
|
image:jme3/advanced/dof-blur.png[dof-blur.png,width="150",height="100"] +
|
|
|
image:jme3/advanced/light-scattering-filter.png[light-scattering-filter.png,width="150",height="100",align="right"]
|
|
image:jme3/advanced/light-scattering-filter.png[light-scattering-filter.png,width="150",height="100",align="right"]
|
|
@@ -139,9 +144,8 @@ image:jme3/advanced/light-scattering-filter.png[light-scattering-filter.png,widt
|
|
|
* Contribution: link:http://jmonkeyengine.org/groups/user-code-projects/forum/topic/generating-vegetation-paged-geometry-style/[Trees (WIP)]
|
|
* Contribution: link:http://jmonkeyengine.org/groups/user-code-projects/forum/topic/generating-vegetation-paged-geometry-style/[Trees (WIP)]
|
|
|
|
|
|
|
|
|
|
|
|
|
-== Light and Shadows
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
+== Light and Shadows
|
|
|
|
|
|
|
|
[.right]
|
|
[.right]
|
|
|
image:jme3/advanced/tanlglow1.png[tanlglow1.png,width="150",height="100"] +
|
|
image:jme3/advanced/tanlglow1.png[tanlglow1.png,width="150",height="100"] +
|
|
@@ -163,10 +167,9 @@ image:jme3/advanced/shadow-sponza-ssao.png[shadow-sponza-ssao.png,width="150",he
|
|
|
* link:http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/test/jme3test/light/TestManyLights.java[jme3/src/test/jme3test/light/TestManyLights.java] – .j3o scene
|
|
* link:http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/test/jme3test/light/TestManyLights.java[jme3/src/test/jme3test/light/TestManyLights.java] – .j3o scene
|
|
|
* More details: <<jme3/advanced/light_and_shadow#,Light and Shadow>>
|
|
* More details: <<jme3/advanced/light_and_shadow#,Light and Shadow>>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-image::jme3/advanced/shadow.png[shadow.png,width="150",height="100",align="right"]
|
|
|
|
|
-
|
|
|
|
|
-image::jme3/advanced/light-sources.png[light-sources.png,width="150",height="100",align="right"]
|
|
|
|
|
|
|
+[.right]
|
|
|
|
|
+image:jme3/advanced/shadow.png[shadow.png,width="150",height="100"] +
|
|
|
|
|
+image:jme3/advanced/light-sources.png[light-sources.png,width="150",height="100",align="right"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -179,10 +182,12 @@ image::jme3/advanced/light-sources.png[light-sources.png,width="150",height="100
|
|
|
* More details: <<jme3/advanced/light_and_shadow#,Light and Shadow>>
|
|
* More details: <<jme3/advanced/light_and_shadow#,Light and Shadow>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
== Special: Glass, Metal, Dissolve, Toon
|
|
== Special: Glass, Metal, Dissolve, Toon
|
|
|
|
|
|
|
|
|
|
+[.right]
|
|
|
|
|
+image::jme3/advanced/toon-dino.png[toon-dino.png,width="150",height="100"]
|
|
|
|
|
|
|
|
-image::jme3/advanced/toon-dino.png[toon-dino.png,width="150",height="100",align="right"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -192,6 +197,7 @@ image::jme3/advanced/toon-dino.png[toon-dino.png,width="150",height="100",align=
|
|
|
* link:http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/test/jme3test/post/TestTransparentCartoonEdge.java[jme3/src/test/jme3test/post/TestTransparentCartoonEdge.java] – CartoonEdgeFilter
|
|
* link:http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/test/jme3test/post/TestTransparentCartoonEdge.java[jme3/src/test/jme3test/post/TestTransparentCartoonEdge.java] – CartoonEdgeFilter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Fade in / Fade out
|
|
=== Fade in / Fade out
|
|
|
|
|
|
|
|
* <<jme3/advanced/fade#,Fade>> – FadeFilter
|
|
* <<jme3/advanced/fade#,Fade>> – FadeFilter
|
|
@@ -200,6 +206,7 @@ image::jme3/advanced/toon-dino.png[toon-dino.png,width="150",height="100",align=
|
|
|
=== User Contributed
|
|
=== User Contributed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
image::jme3/advanced/shaderblow_light1.jpg[shaderblow_light1.jpg,width="78",height="150",align="right"]
|
|
image::jme3/advanced/shaderblow_light1.jpg[shaderblow_light1.jpg,width="78",height="150",align="right"]
|
|
|
|
|
|
|
|
image::jme3/advanced/shaderblow_glass.jpg[shaderblow_glass.jpg,width="80",height="150",align="right"]
|
|
image::jme3/advanced/shaderblow_glass.jpg[shaderblow_glass.jpg,width="80",height="150",align="right"]
|