Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page provides a tutorial for setting up a simulation to emit only while moving.

Overview

...

UI Text Box
sizemedium
typeinfo

This is an Entry Level tutorial which requires no previous knowledge of Phoenix FD. A basic understanding of Maya would be helpful but is not a prerequisite for being able to follow along.

Section
Column
width40%

The instructions on this page will guide you in modifying a fire simulation so that it emits only when the emission object moves. This can be useful for effects that occur with animation and leave a trail behind, such as smoke trails from a vehicle or sparks flying from a magic wand.

Column
width5%

 

60%
Column
width55%

Image Modified

 

Steps

...

...

Section
Column
width40%

Start by creating a new project from File → Project Window
Click the New button at the top right corner of the window and give it a name.

This is important because Phoenix FD stores the simulation data in the data directory of the currently selected project. You can manually point to a different project directory from the File → Set Project... dialog.

Column
width60%

...

Section
Column
width40%

With the source geometry selected, click the Fire preset button on the Phoenix FD shelfShelf

This will automatically generate a fire setup that you can play with. 

Column
width60%

...

Section
Column
width40%

Select PhoenixFDSrc1. In the Attribute Editor, go to the Discharge Modifiers tab and next to Source, select Speed from the dropdown menu. 

Take note of the options that appear. The Scale parameter extends the X axis of the graph thus providing finer control over the emission.  

Info

Speed is computed for each frame as the length of the vector the object or vertex is travelling along. Depening Depending on the scale of your scene, this may be a very low or a very large value.

Set the Space to World and the Scale to 1.
The Y axis on the graph is the value produced for the corresponding point in X.

In this example, a Speed of 0.5 world units per frame produces a discharge multiplier of 0.5.  

Column
width60%

...

Section
Column
width40%

At the moment, the object is emitting fire only while stationary.

To reverse this effect (iei.e. to have it emit fire only when moving), you need to reverse the Discharge diagram.

The X-axis of the diagram is the input values, the Y-axis is the result. Therefore, for input values of 0 ( iei.e. speed is 0, object is stationary), the Y-axis value should also be zero. When that condition is met, the object won't emit when its standing still because its speed is 0.

You can see this setup on the image to the right.

Column
width60%

...

Section
Column
width40%

You can hit Start to see how that looks.

Column
width60%

Videoautoplayloop
0emit_only_when_moving_render.mp4
180%
280%
3true
4false
5true

 

...