Versions Compared

Key

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

 

Overview

...

The Input rollout determines the path of the input files for rendering and preview as well as the playback effects. Note that some playback settings require a fractional input frame, in which case the frame is blended between the previous and the next one.

medium
UI Text Box
size
typeinfo

To set up rendering and simulation cache paths manually, see Chaning the Default Phoenix Paths in the Tips and Tricks page.

medium
UI Text Box
size
typetip

UI Path: ||Select PhoenixFDSim|| > Attribute Editor > Input rollout

 

 

Parameters

 

...

Image Modified

 

Cached Frames – Shows information about the cached frame range.

...

UI Expand
titleClick Here to expand additional $(VARIABLE) and Channel Mapping information

$(same_as_output) – Uses the output path as input. The resimulation output path will get used if the Resimulate option is enabled in the Resimulation rollout.
$(same_as_output)[nodeName] – Use the output path of "nodeName" as input.
$(simoutput) – Same as $(same_as_output).

$(same_as_resimoutput) – Uses the resimulation output path as input.
$(same_as_resimoutput)[nodeName] – Uses the output path of "nodeName" as input.
$(resimoutput) – Same as $(same_as_resimoutput).

$(work_path) – $(data_dir)/$(scene)_Phoenix_frames/$(nodename)_####.aur
$(data_path)
 – $(data_dir)/$(scene)_Phoenix2_frames/$(nodename)_####.aur
$(scene_path)
 – $(dir)/$(scene)_Phoenix_frames/$(nodename)_####.aur
$(scene_dir)
 – $(dir)/$(scene)_Phoenix2_frames/$(nodename)_####.aur
$(implicit) – Same as $(data_path).
$(dir) – The scene directory.
$(data_dir) – The current workspace data directory.
$(scene) – The scene file name.
$(nodename) – The name of the node.
$(fullname) – The full name of the node.
$(workspace) – The current workspace directory.
$env(<variable_name>) – An environment variable. See Using Environment Variables.

If you are transferring your scene and assets between Windows and Linux, prefixing your path with the $(workspace) or $env(<variable_name>) macros can make it possible to use the same scene without any manual modifications to the cache path.

Pound signs can be used to specify the cache frame number with at least as many digits as the pound signs. If the number of frame digits is less than the number of pound signs, the number is padded with zeroes to the left. For example:

 

Align
aligncenter
 Result
Frame Number#######
11010001
1010100010
1000100010001000
size
UI Text Box
mediumtypenote

The default rendering settings are tuned to Phoenix FD simulations, and they might not work well for imported 3rd party cache files.
This is why when loading OpenVDB or Field3D files generated by other software packages, you are given the option to choose a preset. The presets will change the render settings to reasonable default values. The presets will also modify the orientation of the cache files depending on the coordinate system of the source application (Y-up versus Z-up) by Enabling / Disabling the Flip Up Axis option.
You can further edit the parameters in the Rendering roll-out rollout to achieve the desired appearance of your simulation.

UI Text Box
sizemedium
typetip

You can suppress showing of the dialogues offering presets using the inDontOfferPresets attribute of the Simulator. Setting inDontOfferPresets to 1, as shown in the image below, will disable the presets pop-up window displayed when a VDB or Field3D cache files are loaded.

UI Text Box
sizemedium
typeinfo

Clicking the "..." button will open a menu with the following options:

 

Browse – Opens a dialog for choosing one of several cache file types. Phoenix can import *.f3d, *.vdb and *.prt files from other fluid simulator software products.  See How to import and render simulations from FumeFX, Houdini and Maya for more information.

Supported file formats are:

  • Phoenix *.aur 
  • Field3D *.f3d 
  • OpenVDB *.vdb
  • Krakatoa *.prt

Reset to Default - Resets the Preview and Render Path to the default value of $(same_as_output).

Help - Opens the Help page for the Input rollout of the Phoenix FD Simulator.

...

 

Anchor
TimeBendControls
TimeBendControls

...

This section contains playback options you can use for retiming a simulation after it has already finished. Using these, you can speed up, slow down or animate the motion of the simulated sequence. When retiming an existing simulation from this section without re-simulating, additional RAM might be used, and loading a new timeline frame may take longer when the frame must be obtained by creating a new one between two adjacent cache files. We will refer to the process of creating an intermediate frame from two caches as Blending. Some of the settings in this section might require specific grid or particle channels to be saved to the cache files during simulation from the Output rollout.

medium
UI Text Box
size
typewarning

In order to blend FLIP particles (e.g. Foam, Splash, etc.), enable the export of the Particle ID channel from the Output roll-out  rollout of the simulatorSimulator.

To blend Drag particles, enable the export of the Particle ID channel from the Particles section of the Phoenix FD Source used to add them into the Simulationsimulation.


 

Playback Mode | inMode – Chooses between different options for animation control:

...

Interpolation – Simple linear interpolation suitable for slow simulations. This is the fastest method but it does not capture movement well and may produce flickering.
Velocity – Velocity-based interpolation. Produces better results, but works more slowly. Captures well the movement of the fronts of the plumes, but does not work well for smoke moving backwards, and also may produce flickering. It requires an exported grid velocity channel from the Output rollout.
Precise Tracing - Improved Velocity based interpolation for Fire and Smoke simulations. Captures plume movement very well and can handle very low Play Speeds. Requires an exported grid Velocity channel, as well as Advection Origin channel from the Output rollout.

size
UI Text Box
mediumtypetip

Grid Frame Blending is better suited for simulations without much variety in velocity. For more chaotic fire/smoke simulations, it is better to run a Resimulation using Time Bend controls. Time Bend Resimulation will calculate a better intermediate result for each frame and store it in new cache files that can later be loaded faster, as opposed to Frame Blending which re-launches every time the timeline frame changes. However, for very slow moving simulation the Precise Tracing method produces better-looking results than Time Bend Resimulation. For more information, see How to slow down a simulation, animate the time-scale, etc.

...

Flip Up Axis | inFlipYZ – When enabled, flips the Y and Z axis of the cache's transformation. This is useful when the cache was created with a different up axis (for example, in 3ds Max).

 

 

Section

Example: Timeline Origin

 


Section
Column
width40%
medium
UI Text Box
size
typeinfo

The following example demonstrates how the Timeline Origin parameter can be used to specify which frame on the timeline is treated as the first frame when reading the Input Path cache files.

The files go from simulationFrame_000 to simulationFrame_030. When the Timeline Origin is set to 10, they are read as if they were saved as simulationFrame_010 to simulationFrame_040.

Column
width60%

...

Section

Example: Cache Origin and Play Speed

 


Section
Column
width40%
UI Text Box
sizemedium
typeinfo

The following example demonstrates how the Cache Origin and Play Speed can be used to offset and speed up the input cache files.

The files go from simulationFrame_000 to simulationFrame_030. When the Timeline Origin is set to 100, they are read as if they were saved as simulationFrame_100 to simulationFrame_130.

The Cache Origin is then used to specify which simulationFrame will be placed on Timeline Origin = 100. Because Cache Origin is set to 10, the whole sequence is shifted 10 frames back such that simulationFrame_000 is placed at frame 90. Thus, the sequence now goes from frame 90 to frame 120.

The Play Speed is then set to 2.0. Those thirty frames are now reduced to fifteen. The Cache Origin frame is treated as the middle point when shrinking the sequence.

Column
width60%

...

Section

Example: Looping a Simulation

 


Section
Column
width40%
medium
UI Text Box
size
typeinfo

The following example demonstrates how the Input roll-out rollout parameters can be used to loop a simulation.

The Timeline Origin parameter is set to 0 - this will be the first frame of the timeline which the Input Path files read into the scene by the Simulator will be placed on.

The Cache Origin is set to 10 so simulationFrame_010 will be read and placed at Timeline Origin = 0.

The Play Length is set to 15 so the sequence now repeats itself every 15 frames when played back (those are actually simulationFrame_010 to simulationFrame_025).

Finally, the Loop Overlap parameter is set to 5 to provide a few extra frames for blending the start and end of the loop together in a smooth transition.

Column
width60%

 

Example: Play Speed

 

...

UI Expand
titleExample: Large Smoke (Play Speed: 0.1)
Section
Column
width1%

 

Column
width98%

Column
width1%

 

...


Grid Channel Smoothing

...

medium
UI Text Box
size
typewarning

Grid Smoothing is performed after the cache file is loaded for the current frame, so for large grids it could cause significant lag after changing frames. To prevent this from occurring, switch it off during the design process and re-enable it again before rendering.

The controls in this section allow you to smooth the grid channels loaded from cache files for preview and rendering. You can use this to prevent grid artifacts on meshed grid channels such as the Liquid surface, Smoke or Temperature, to remove unwanted noise in these channels, or to get smooth motion blur by smoothing the Velocity grid channel. 



 

Threshold | inSmoothTemp[0], inSmoothSmoke[0], inSmoothUVW[0], inSmoothFuel[0], inSmoothVel[0] – If this value is 0, the entire grid will be smoothed evenly. The higher the threshold is raised, the less voxels will be affected and only the sharpest gradients will be smoothed. The highest value you could use here depends on the range of the values of the smoothed channel - for Smoke and Liquid it's usually in the [0,1] range, while for Velocity it could go as high as several hundred and for Temperature it could be over a thousand. If you set this value too high, no voxels will be smoothed at all.

...

Smoke - 2
Temperature - 1
Fuel - 10
Velocity.x - 4
Velocity.y - 5
Velocity.z - 6
Red - 7
Green - 8
Blue - 9
Viscosity - 22
Wavelet Energy - 14
Wavelet.u - 19
Wavelet.v - 20
Wavelet.w - 21

 

 

...