This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Editing Curves

Some parameters of the Particle System (position, direction, angle, radius, color, etc.) may require to be changed over time to create a more natural behavior. To make such changes possible, the values for these parameters are set as curves.

Curve Editor allows adjusting these curves.

Curve Editor becomes available, when either either Curve or Between Curve is used for setting the parameter values.

Curve The parameter value changes over time based on the curve defined in Curve Editor.
Between Curve There are two curves that define the limits, and a random value is taken at every moment of time within these limits. The parameter value changes over time based on this randomly generated set of values.

To open Curve Editor, click on the curve preview widget.

A separate Curve Editor window opens for each parameter. The previously opened windows are not closed.

Navigating in Curve Editor#

The horizontal axis represents life time. The values are normalized and depend on the Life Time value of the node.

The vertical axis represents the range of available parameter values. The scale is controlled by Max Value.

The curve view can be zoomed in and out by using the scroll wheel.

The curve view can be panned by dragging mouse while holding the middle button pressed or holding the Ctrl button and using the cursor keys.

If a parameter is adjusted via multiple curves, you can hide some of them via the corresponding checkboxes with color coding.

Curves are edited via keys (points on the curve) by changing their position and manipulating their tangents.

Adding and Editing Keys#

To add a key, right-click on the curve at the point where the key should be placed and select Add key.

Removing a key can be performed by right-clicking on it and selecting Remove key.

The key position can be changed:

  • by dragging the key around with the mouse
  • by changing the values in the Key Parameters section on the right

Multiple keys can be selected by either of the following ways:

  • Press down Ctrl and click the required keys.
  • Click on an empty spot and drag to make the rectangular selection.

These two ways can be combined: for example, select keys using a rectangle, then press down Ctrl and click on the keys you want to add.

Unselecting keys from a rectangle is also done by clicking on them with the Ctrl key hold down.

To move all selected keys, press down the left mouse button on one of the keys and drag them around.

To deselect all keys, just click anywhere.

Editing Tangents#

Each key has two tangents to control the curve shape to the left and to the right of the key.

To edit a tangent, select a key, then select a tangent and drag it around.

When multiple keys are selected, you can also modify every single tangents.

Curve Parameters#

To select the whole curve, click on it anywhere between the first and the last key.

When selected, the whole curve can be moved around.

To deselect a curve, click anywhere except for this curve and its keys.

For the curve, the following parameters are available:

  • Pre Infinity — the behaviour of the curve prior to the first (leftmost) key.
  • Post Infinity — the behaviour of the curve after the first (rightmost) key.

These parameters can be used to create loops, i.e. repeat the effect that you created before and after the explicit range defined by the keys.

For these parameters, the following options can be applied:

Clamp The value of the start or the end key is retained. Use this option if you don't want any changes before or after the effect created by the curve.
Loop The curve is tiled. The created effect is repeated. If the values of the first and the last key are different, the transition between the curves will be abrupt.
PingPong Every next curve section is a reflection of the previous curve section. The created effect is repeated in the forward-and-backward manner.


The number of curves varies depending on the type of the controlled parameter: for example, angle has a single component (angle value), while direction has three (X, Y, and Z axes), a color may have up to four components (RGBA channels).

Last update: 2020-07-31
Build: ()