Creating fire effects using particles

CreativeStudio can create a myriad of effects using particles.

This page describes how to create a fire effect using particles and sample textures.

Creating a Particle Effect

On the CreativeStudio menu, select CreateEffect.

The ParticleCtrCreationPanel dialog box appears, where you can enter a name for the particle.

Here, we enter "fire" for the paricle name.

Entering the particle name

Enter a particle name, then click Apply and close or Apply to create the effect.

Click the Play button in CreativeStudio to display the particles in the Preview panel.

Particle creation image 01

Emitter Settings

Here, we will set an emitter using the particle emitter Properties panel.

Parameters for the emitter shape, size, and volume of particles to be emitted can be set on the particle emitter Properties panel.

Single clicking on fireEmitter displayed in the Contents panel will display particle emitter settings in the Properties panel.

Particle creation image 03

Selecting the CreativeStudio menu Window > Property panel or double-clicking on a particle emitter icon displayed in the Contents panel will open the Properties panel in a separate window, where the same emitter settings as given above can be made.

Changing the emitter shape

On the particle emitter Properties panel, the emitter shape can be selected from among point, disc, sphere, cylinder, rectangle, and cube.

Here, we will change the emitter shape to a sphere.

Particle Creation Image 04

Confirm that particle emission changes on the Preview panel when the emitter shape is changed.

Loading texture intermediate files

On the CreativeStudio menu, select File Open Intermediate file to load the fire texture intermediate file located in the following folder:

%NW4C_ROOT%/SampleData/Effect/Intermediate/fire_particle/fire_anim.ctex

The following texture image is used. L8 is used for the texture format.

Particle Creation Image 02

Loading the fire texture intermediate file will display fire_anim in the CreativeStudio Contents panel.

Material settings

The fire texture intermediate file loaded into CreativeStudio will be applied to particles using the material Properties panel.

Single clicking on fireMaterial displayed in the Contents panel will display the material Properties panel.

Particle creation image 03

Standard mode, Details mode and Particle mode have been prepared on the material Properties panel.

The description here uses Details mode on the material Properties panel.

For details on the material Properties panel, click here.

Adding textures

The fire texture intermediate file is added to available settings on the material Properties panel under Texture configuration.

Right click on the box labelled Texture number 0, select Apply texture and then choose fire_anim.

Now, we will apply fire_anim.

Particle Creation Image 06

The CreativeStudio Preview panel will appear as follows when fire_anim is applied.

Particle Creation Image 07

Particle effect settings

In this section, we will set the particle lifespan and an animation using the particle set Properties panel.

Single click fireParticle displayed on the Contents panel.

Particle creation image 03

The particle set Properties panel will appear in the CreativeStudio main window. Change the following settings.

Lifespan setting

Lifespan sets the particle lifespan.

Change the lifespan values to those given below.

Particle Creation Image 10

Making the above settings randomly varies the particle lifespan between 20f to 30f.

The particle lifespan is the amount of time between the emission of a particle from a particle emitter and its expiration.
It can be used to animate individual particles.

Color Settings

Here, we will change the colors used by the particle vertex shader to the numeric values given below.

Particle Creation Image 11

Making the above settings will cause the CreativeStudio Preview panel to appear as shown below.

Particle Creation Image 12

Animation settings

Now, we will create a fire-like animation.

Alpha animation settings

Now we will set an animation for the vertex alpha of the particle.
Under Alpha, select Overwrite previous value from the Animation pull-down menu.

Particle Creation Image 13

The setting option Overwrite previous value will appear. Check the playback option Fit to lifespan.

Fit to lifespan is a playback option that automatically links animations created on the CurveEditor panel with particle lifetimes.

This allows you adjust the duration of alpha animation to match the particle lifespan.

Create an alpha animation curve using the CurveEditor panel.

Select WindowCurveEditor to open the CurveEditor panel in a separate window.

Clicking on the plus sign next to fireParticle displayed on the CurveEditor panel expands the hierarchy. Expand to Alpha and then Curve and set the following numeric values.

Particle creation image 22

The values for the horizontal axis and vertical axis when the alpha animation is displayed on the CurveEditor panel represent the following information.
Horizontal axis: Frame value
Vertical axis: Alpha value

Texture coordinate 0 animation setting

Return to the particle set Properties panel. Configure an animation under Vertex UV translation for Texture coordinate 0.

Select Texture pattern from the pull-down menu.

Texture pattern settings will be displayed. Change the settings as follows.

Particle Creation Image 14

Making the above settings will cause the CreativeStudio Preview panel to appear as shown below.

Particle Creation Image 15

Scale settings

Set the size and amplitude of the effect by changing the particle scale.
Change scale values to those given below.

Particle Creation Image 16

Amplitude (%) is a random value multiplied by the standard value at the time of particle generation.

Amplitude formula

Standard Value ± (Random Value × Standard Value)

Example

The calculation formula when the above settings, X axis = 2, Amplitude = 25%, have been made is 2 ± (0.25 × 2), with a random value varying between 1.5 and 2.5.

Applying an animation to the scale

Additional settings are appear under Scale when Add to previous value is selected from the Animation pull-down menu.

Particle Creation Image 17

Settings for Add to previous value and Default value for X, Y and Z will be displayed. Change the default values for Add to previous value as given below.

The above settings scale the effect by -0.02 each frame.

The Add to previous value method animates by adding a value to the value from the previous frame every frame.
Use this to animate at a set speed.

Rotation settings

Rotation settings are used to set the rotation of a particle around the XYZ axes and its angular velocity when generated.
Change rotation values to those given below.

Particle Creation Image 18

Standard Value

Amplitude

Applying an animation to rotation

Be sure to select Add to previous value from the Animation pull-down menu under Rotation.
Settings for Add to previous value and Default value for X, Y and Z will be displayed. Change the settings for Add to previous value as given below.

Particle Creation Image 19

Select the radio button labeled Random table.

Random table is a playback option for getting a value at the time of particle emission from a random animation frame.

Selecting Random table will randomly select from among the Rotate Z keys created below.

Open the CurveEditor panel to create the following keys for the Rotate Z.

Particle creation image 23

The values for the horizontal axis and vertical axis when an animation using Add to previous value is displayed on the CurveEditor panel are as follows.
Horizontal axis: Frame value
Vertical axis: Default value to be added.

Speed settings

Set gravity for the speed.
Select gravity (accelerate in the specified direction) from the speed animation pull-down menu and press the Add button.

Gravity settings will be displayed. Change the settings as follows.

Particle Creation Image 20

Making the above settings will cause the CreativeStudio Preview panel to appear as shown below.

Particle Creation Image 21

This completes the creation of fire effect using particles.


CONFIDENTIAL