|
|
@@ -12,7 +12,7 @@ Previous: <<jme3/beginner/hello_audio#,Hello Audio>>,
|
|
|
Next: <<jme3/beginner/hello_physics#,Hello Physics>>
|
|
|
|
|
|
|
|
|
-image::jme3/beginner/beginner-effect-fire.png[beginner-effect-fire.png,with="150",height="165",align="right"]
|
|
|
+image::jme3/beginner/beginner-effect-fire.png[beginner-effect-fire.png,150,165,align="right"]
|
|
|
|
|
|
|
|
|
When you see one of the following in a game, then a particle system is likely behind it:
|
|
|
@@ -111,7 +111,7 @@ link:https://github.com/jMonkeyEngine/jmonkeyengine/tree/master/jme3-examples/sr
|
|
|
=== Texture Animation and Variation
|
|
|
|
|
|
|
|
|
-image::jme3/beginner/Debris.png[Debris.png,with="96",height="96",align="right"]
|
|
|
+image::jme3/beginner/Debris.png[Debris.png,96,96,align="right"]
|
|
|
|
|
|
|
|
|
Start by choosing a material texture for your effect. If you provide the emitter with a set of textures (see image), it can use them either for variation (random order), or as animation steps (fixed order).
|
|
|
@@ -158,23 +158,23 @@ a| Preview
|
|
|
|
|
|
<a| Effects/Explosion/Debris.png
|
|
|
<a| 3*3
|
|
|
-a| image:jme3/beginner/Debris.png[Debris.png,with="32",height="32"]
|
|
|
+a| image:jme3/beginner/Debris.png[Debris.png,32,32]
|
|
|
|
|
|
<a| Effects/Explosion/flame.png
|
|
|
<a| 2*2
|
|
|
-a| image:jme3/beginner/flame.png[flame.png,with="32",height="32"]
|
|
|
+a| image:jme3/beginner/flame.png[flame.png,32,32]
|
|
|
|
|
|
<a| Effects/Explosion/shockwave.png
|
|
|
<a| 1*1
|
|
|
-a| image:jme3/beginner/shockwave.png[shockwave.png,with="32",height="32"]
|
|
|
+a| image:jme3/beginner/shockwave.png[shockwave.png,32,32]
|
|
|
|
|
|
a| Effects/Explosion/smoketrail.png
|
|
|
<a| 1*3
|
|
|
-a| image:jme3/beginner/smoketrail.png[smoketrail.png,with="32",height="32"]
|
|
|
+a| image:jme3/beginner/smoketrail.png[smoketrail.png,32,32]
|
|
|
|
|
|
<a| Effects/Smoke/Smoke.png
|
|
|
a| 1*15
|
|
|
-a| image:jme3/beginner/Smoke.png[Smoke.png,with="96",height="32"]
|
|
|
+a| image:jme3/beginner/Smoke.png[Smoke.png,96,32]
|
|
|
|
|
|
|===
|
|
|
|
|
|
@@ -203,7 +203,7 @@ For your game, you will likely create custom particle textures. Look at the fire
|
|
|
----
|
|
|
|
|
|
|
|
|
-image::jme3/beginner/flame.png[flame.png,with="96",height="96",align="right"]
|
|
|
+image::jme3/beginner/flame.png[flame.png,96,96,align="right"]
|
|
|
|
|
|
|
|
|
Compare the texture with the resulting effect.
|
|
|
@@ -304,7 +304,7 @@ Add and modify one parameter at a time, and try different values until you get t
|
|
|
|
|
|
[TIP]
|
|
|
====
|
|
|
-*Tip:* Use the SceneComposer in the jMonkeyEngine SDK to create effects more easily. Create an empty scene and add an emitter object to it. Change the emitter properties and watch the outcome live. You can save created effects as .j3o file and load them like scenes or models.
|
|
|
+Use the SceneComposer in the jMonkeyEngine SDK to create effects more easily. Create an empty scene and add an emitter object to it. Change the emitter properties and watch the outcome live. You can save created effects as .j3o file and load them like scenes or models.
|
|
|
====
|
|
|
|
|
|
|