Prechádzať zdrojové kódy

new particle effects manual

Mikael Säker 7 rokov pred
rodič
commit
47ee8d215a
29 zmenil súbory, kde vykonal 113 pridanie a 90 odobranie
  1. BIN
      docs/en/manuals/images/particlefx/acceleration.png
  2. BIN
      docs/en/manuals/images/particlefx/[email protected]
  3. BIN
      docs/en/manuals/images/particlefx/add_modifier.png
  4. BIN
      docs/en/manuals/images/particlefx/[email protected]
  5. BIN
      docs/en/manuals/images/particlefx/add_modifier_select.png
  6. BIN
      docs/en/manuals/images/particlefx/[email protected]
  7. BIN
      docs/en/manuals/images/particlefx/curve_editor.png
  8. BIN
      docs/en/manuals/images/particlefx/[email protected]
  9. BIN
      docs/en/manuals/images/particlefx/default.png
  10. BIN
      docs/en/manuals/images/particlefx/[email protected]
  11. BIN
      docs/en/manuals/images/particlefx/drag.png
  12. BIN
      docs/en/manuals/images/particlefx/[email protected]
  13. BIN
      docs/en/manuals/images/particlefx/editor.png
  14. BIN
      docs/en/manuals/images/particlefx/[email protected]
  15. BIN
      docs/en/manuals/images/particlefx/effect_outline.png
  16. BIN
      docs/en/manuals/images/particlefx/emitter_properties.png
  17. BIN
      docs/en/manuals/images/particlefx/emitter_types.png
  18. BIN
      docs/en/manuals/images/particlefx/[email protected]
  19. BIN
      docs/en/manuals/images/particlefx/key.png
  20. BIN
      docs/en/manuals/images/particlefx/[email protected]
  21. BIN
      docs/en/manuals/images/particlefx/modifiers.png
  22. BIN
      docs/en/manuals/images/particlefx/[email protected]
  23. BIN
      docs/en/manuals/images/particlefx/property.png
  24. BIN
      docs/en/manuals/images/particlefx/[email protected]
  25. BIN
      docs/en/manuals/images/particlefx/radial.png
  26. BIN
      docs/en/manuals/images/particlefx/[email protected]
  27. BIN
      docs/en/manuals/images/particlefx/vortex.png
  28. BIN
      docs/en/manuals/images/particlefx/[email protected]
  29. 113 90
      docs/en/manuals/particlefx.md

BIN
docs/en/manuals/images/particlefx/acceleration.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/add_modifier.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/add_modifier_select.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/curve_editor.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/default.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/drag.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/editor.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/effect_outline.png


BIN
docs/en/manuals/images/particlefx/emitter_properties.png


BIN
docs/en/manuals/images/particlefx/emitter_types.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/key.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/modifiers.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/property.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/radial.png


BIN
docs/en/manuals/images/particlefx/[email protected]


BIN
docs/en/manuals/images/particlefx/vortex.png


BIN
docs/en/manuals/images/particlefx/[email protected]


+ 113 - 90
docs/en/manuals/particlefx.md

@@ -19,165 +19,188 @@ Modifier
 
 ## Creating an effect
 
-Select <kbd>New... ▸ Particle FX</kbd> from the context menu in the *Assets* browser. Name the new particle effect file. The editor will now open the file in the particle effect editor.
+Select <kbd>New... ▸ Particle FX</kbd> from the context menu in the *Assets* browser. Name the new particle effect file. The editor will now open the file using the [Scene Editor](/manuals/editor/#_the_scene_editor).
 
-By default a simple 2d cone emitter is added to the effect. Select the emitter
+The *Outline* pane shows the default emitter. Select the emitter to bring up its properties in the *Properties* pane below.
 
-The *Outline* pane shows the emitters and modifiers that are part of the effect. Selecting an emitter or modifier brings up its properties in the *Properties* pane below.
+![Default particles](images/particlefx/default.png){srcset="images/particlefx/[email protected] 2x"}
 
+To add a new emitter to the effect, <kbd>right click</kbd> the root of the *Outline* and select <kbd>Add Emitter ▸ [type]</kbd> from the context menu. Note that you can change the type of the emitter in the emitter properties.
 
+To add a new modifier, <kbd>right click</kbd> the location of the modifier in the *Outline* (the effect root or a particular emitter) and select <kbd>Add Modifier</kbd>, then select the modifier type.
 
+![Add modifier](images/particlefx/add_modifier.png){srcset="images/particlefx/[email protected] 2x"}
 
+![Add modifier select](images/particlefx/add_modifier_select.png){srcset="images/particlefx/[email protected] 2x"}
 
-The particle fx editor is a real time visual editor that allows you to edit and preview the effect.
+A modifier that sits on the effect root (not childed to an emitter) affects all particles in the effect.
 
+A modifier that is added as a child to an emitter affects only that emitter.
 
-Updates to any property is immediately shown in the preview, whether the effect is running or not.
+## Previewing an effect
 
+* Select <kbd>View ▸ Play</kbd> from the menu to preview the effect. You may need to zoom out the camera to see the effect properly.
+* Select <kbd>View ▸ Play</kbd> again to pause the effect.
+* Select <kbd>View ▸ Stop</kbd> to stop the effect. Playing it again restarts it from its initial state.
 
+When editing an emitter or modifier the result is immediately visible in the editor, even with the effect paused:
 
-<kbd>View ▸ Play</kbd>
+![Edit particles](images/particlefx/rotate.gif)
 
+## Emitter properties
 
+Id
+: Emitter identifier (used when setting render constants for specific emitters).
 
-## Concepts
-
-
-![ParticleFX Editor Outline](images/particlefx/effect_outline.png)
+Position/Rotation
+: Transform of the emitter relative the ParticleFX component.
 
-![ParticleFX Emitter Properties](images/particlefx/emitter_properties.png)
+Play Mode
+: Controls how the emitter plays:
+  - `Once` stops the emitter after reaching its duration.
+  - `Loop` restarts the emitter after reaching its duration.
 
-## Previewing
+Size Mode
+: Controls how flipbook animations will be sized:
+  - `Auto` keeps the size of each flipbook animation frame to the source image.
+  - `Manual` sets the particle size according to the size property.
 
-To preview the particle effects, the scene editor is used. It is explained in detail here: [Scene Editing](/manuals/scene-editing/).
-Use the <kbd>Space</kbd> key to start and stop particle effects while previewing. Whether the particle effect is playing or not, it will be updated in real-time while tweaking it.
+Emission Space
+: Which geometrical space the spawned particles will exist:
+  - `World` moves the particles independent of the emitter.
+  - `Emitter` moves the particles relative to the emitter.
 
-## Value tweaking
+Duration
+: The number of seconds the emitter should emit particles.
 
-All number properties can be tweaked using the mouse-wheel (or scroll gesture on track-pad) when the <kbd>Alt</kbd> key modifier is pressed. Use the <kbd>Alt</kbd> key in combination with the <kbd>Ctrl</kbd> key to increase the speed by a factor of 10.
+Start Delay
+: The number of seconds the emitter should wait before emitting particles.
 
-## Keying properties
+Start Offset
+: The number of seconds into the particle simulation the emitter should start.
 
-![ParticleFX Curve Editor](images/particlefx/curve_editor.png)
+Image
+: The image file (Tile source or Atlas) to use for texturing and animating the particles.
 
-Different properties can be keyed over different timelines, which means that their value can change over time. It is possible to see which properties have this ability in the reference below.
+Animation
+: The animation from the *Image* file to use on the particles.
 
-To key a value:
+Material
+: The material to use for shading the particles.
 
-- Select Curve from the context menu in the text field you wish to key, which gives the text field a light green background.
-- Go to the Curve Editor (available among the tabs in the bottom view) and modify the curve. It is possible to click and drag the points and tangents. Double-click to add or remove points (also available from the context menu inside the Curve Editor).
+Blend Mode
+: Available blend modes are `Alpha`, `Add` and `Multiply`.
 
-Keyed properties can't be edited in the Properties View, only in the Curve Editor.
-To reset a keyed property, select Curve again from the context menu in its text field.
-To auto-zoom the Curve Editor to display all curves, press <kbd>F</kbd>.
+Max Particle Count
+: How many particles originating from this emitter that can exist at the same time.
 
-Spread
-: When a property has two fields, the first is the value and the second is the spread. The value is what you key. The spread is a variation which is applied randomly for each spawned particle. E.g. if the value is 50 and the spread is 10, each spawned particle will get a value between 40 and 60 (50 +/- 10).
+Emitter Type
+: The shape of the emitter
+  - `Circle` emits particles from a random location inside a circle. The particles are directed outwards from the center. The circle diameter is defined by *Emitter Size X*.
 
-## Emitter properties
+  - `2D Cone` emits particles from a random location inside a flat cone (a triangle). The particles are directed out of the top of the cone. *Emitter Size X* defines the width of the top and *Y* defines the height.
 
-Id
-: Emitter identifier (used when setting render constants for specific emitters).
+  - `Box` emits particles from a random location inside a box. The particles are directed up along the box' local Y-axis. *Emitter Size X*, *Y* and *Z* defines width, height and depth respectively. For a 2D rectangle, keep the Z size at zero.
 
-Mode
-: If the emitter should stop (`Once`) or restart (`Loop`) when reaching its duration.
+  - `Sphere` emits particles from a random location inside a sphere. The particles are directed outwards from the center. The sphere diameter is defined by *Emitter Size X*.
 
-Duration
-: For how long the emitter should emit particles.
+  - `Cone` emits particles from a random location inside a 3D cone. The particles are directed out through the top disc of the cone. *Emitter Size X* defines the diameter of the top disc and *Y* defines the height of the cone.
 
-Space
-: In which geometrical space the spawned particles will exist.
-  - `World` means the particles are left in the world and move independently of the emitter;
-  - `Emitter` means they will move relative to the emitter.
+  ![emitter types](images/particlefx/emitter_types.png){srcset="images/particlefx/[email protected] 2x"}
 
-Position/rotation
-: Transform of the emitter relative the ParticleFX component.
+Particle Orientation
+: How the emitted particles are oriented:
+  - `Default` sets the orientation to unit orientation
+  - `Initial Direction` keeps the initial orientation of the emitted particles.
+  - `Movement Direction` adjusts the orientation of the particles according to their velocity.
 
-Image
-: Image file (Tile source or Atlas) to use for texturing and animating the particles.
+Inherit Velocity
+: A scale value of how much of the velocity of the emitter the particles should inherit. This value is only available when *Space* is set to `World`. The velocity of the emitter is estimated every frame.
 
-Animation
-: Which animation in the Image file to use on the particles.
+Stretch With Velocity
+: Check to scale any particle stretch in the direction of movement.
 
-Material
-: The material to use for shading the particles.
+## Keyable emitter properties
 
-Blend Mode
-: Available blend modes are `Alpha`, `Add` and `Multiply`.
+These properties have two fields: a value and a spread. The spread is a variation which is applied randomly for each spawned particle. E.g. if the value is 50 and the spread is 3, each spawned particle will get a value between 47 and 53 (50 +/- 3).
 
-Particle Orientation
-: How the particles are oriented, either `Default` (unit orientation) or `Initial Direction`.
+![Property](images/particlefx/property.png){srcset="images/particlefx/[email protected] 2x"}
 
-Inherit Velocity
-: How much of the velocity of the emitter the particles should inherit. This value is only available when *Space* is set to `World`. The velocity of the emitter is estimated every frame.
+By checking the key button, the value of the property is controlled by a curve over the duration of the emitter. To reset a keyed property, uncheck the key button.
 
-Max Particle Count
-: How many particles from this emitter can exist at the same time.
+![Property keyed](images/particlefx/key.png){srcset="images/particlefx/[email protected] 2x"}
 
-Type
-: The shape of the emitter
-  - `Circle` - A 2D circle which emits particles outwards from its center. Diameter is defined by *Emitter Size X*.
-  - `2D Cone` - A flattened cone which emits particles from its bottom corner directed out through the top of the cone. *Emitter Size X* defines the diameter of the top and *Y* defines the height.
-  - `Box` - A 3D box which emits particles along its local Y-axis. *Emitter Size X*, *Y* and *Z* defines width, height and depth respectively.
-  - `Sphere` - A 3D sphere which emits particles outwards from its center. Diameter is defined by *Emitter Size X*.
-  - `Cone` - A 3D cone which emits particles from its bottom corner directed out through the top disc of the cone. *Emitter Size X* defines the diameter of the top disc and *Y* defines the height.
+The *Curve Editor* (available among the tabs in the bottom view) is used to modify the curve. Keyed properties can't be edited in the *Properties* view, only in the *Curve Editor*. <kbd>Click and drag</kbd> the points and tangents to modify the shape of the curve. <kbd>Double-click</kbd> on the curve to add control points. To remove a control point, <kbd>double click</kbd> on it.
 
-Start Delay
-: How long to wait after the ParticleFX has been started before this emitter will start emitting particles.
+![ParticleFX Curve Editor](images/particlefx/curve_editor.png){srcset="images/particlefx/[email protected] 2x"}
 
-## Keyable emitter properties
+To auto-zoom the Curve Editor to display all curves, press <kbd>F</kbd>.
 
-These properties have two fields, a value and a spread. The values can be keyed over the duration of the emitter. Spread defines how much the value should randomly change for each spawned particle. Spread is added to the current value.
+The following properties can be keyed over the play time of the emitter:
 
 Spawn Rate
-: How many particles to emit per second.
+: The number of particles to emit per second.
 
 Emitter Size X/Y/Z
-: Dimensions of the emitter shape, see Type above.
+: The dimensions of the emitter shape, see *Emitter Type* above.
 
 Particle Life Time
-: How long each spawned particle should live.
+: The lifespan of each spawned particle, in seconds.
 
 Initial Speed
-: How fast the spawned particles should move initially.
+: The initial velocity of each spawned particle.
 
 Initial Size
-: How large the spawned particles should be.
+: The initial size of each spawned particle. If you set *Size Mode* to `Automatic` and use a flipbook animation as image source, this property is ignored.
 
 Initial Red/Green/Blue/Alpha
-: Initial color components for the particles.
+: The initial color component tint values for the particles.
+
+Initial Rotation
+: The initial rotation values (in degrees) for the particles.
 
-## Keyable particle properties
+Initial Stretch X/Y
+: The initial stretch values (in degrees) for the particles.
 
-These properties can be keyed over the life time of the particles.
+The following properties can be keyed over the life time of the particles:
 
 Life Scale
-: How the particle size should be scaled.
+: The scale value over each particle's life.
 
 Life Red/Green/Blue/Alpha
-: How the particle color should be tinted over its life.
+: The color component tint value over each particle's life.
 
-## Modifier properties
+Life Rotation
+: The rotation value over each particle's life.
 
-Position/rotation
-: The transform of the modifier relative its parent.
+Life Stretch X/Y
+: The stretch value over each particle's life.
 
-Type
-: The type of modifier
-  |          | Type        |
-  | -------- | ----------- |
-  | ![Acceleration modifier](images/particlefx/acceleration.png){.inline} | `Acceleration`: A directed acceleration with no position. Use this for things like gravity. |
-  | ![Drag modifier](images/particlefx/drag.png){.inline} | `Drag`: A decelerating acceleration which is proportional to the particle velocity. Use this for things like air resistance and other fluids. |
-  | ![Radial modifier](images/particlefx/radial.png){.inline} | `Radial`: A radial modifier either attracts or repels particles towards/from a position. Use this for things like small planets. |
-  | ![Vortex modifier](images/particlefx/vortex.png){.inline} | `Vortex`: A vortex affects particles in a circular or spiraling direction around its position. Use this for things like black holes and tornados. |
+## Modifiers
 
-Max Distance
-: The maximum distance within which particles are affected at all by this modifier. Only used for Radial and Vortex.
+There are four types of modifiers available that affect the velocity of particles:
+
+`Acceleration`
+: Acceleration in a general direction.
+
+`Drag`
+: Reduces the acceleration of particles proportional to the particle velocity.
+
+`Radial`
+: Either attracts or repels particles towards/from a position.
 
-## Keyable modifier properties
+`Vortex`
+: Affects particles in a circular or spiraling direction around its position.
 
-These properties have two fields, a value and a spread. The values can be keyed over the duration of the emitter. Spread defines how much the value should randomly change for each spawned particle. Spread is added to the current value.
+  ![modifiers](images/particlefx/modifier.png){srcset="images/particlefx/[email protected] 2x"}
+
+## Modifier properties
+
+Position/Rotation
+: The transform of the modifier relative its parent.
 
 Magnitude
 : The amount of effect the modifier has on the particles.
 
+Max Distance
+: The maximum distance within which particles are affected at all by this modifier. Only used for Radial and Vortex.