Versions Compared

Key

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

HideElements
cssselector#tocVertical, #tocHorizontal

This page provides a tutorial for adding wavelet turbulence to a simulation.

...

Section
Column
width40%

The instructions on this page will guide you in resimulating a fire simulation to add wavelet turbulence.

The image shows the original fire simulation (left) and the resimulation with wavelet turbulence (right).

Column
width60%

...


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 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%

Go to File → Save As and select the scenes directory of your current project. 

Column
width60%

 

...


...


Section
Column
width40%

Create a piece of geometry to use as an emitter. In this example, a default poly sphere is used. 

Rename the geometry to source_geo_01

Column
width60%

...

 


...


Section
Column
width40%

With the source geometry selected, click the Explosion preset button on the Phoenix Shelf. 

This will automatically generate an Explosion setup that you can play with. 

Column
width60%

...

 


...


Section
Column
width40%

Go to the Grid tab of the simulator and set the Cell Size to 0.1.

Because its possible to amplify the resolution of the simulation when using the Resimulate option, it is convenient to try and get away with the highest possible cell size - just enough to shape the simulation.

Column
width60%

 

...


...


Section
Column
width40%

Enable Velocity and Wavelet export from the Output tab of the Simulator. Both of those are required for the Wavelet Nice interpolation method to work.

Column
width60%

 

...


...


Section
Column
width40%

Hit the Start button to simulate 30 or so frames of the simulation. 

Column
width60%

 

...


...


Section
Column
width40%

Head to the Resimulation tab and enable Resimulate. You'll notice that the contents of the grid suddenly disappear - Phoenix keeps separate sequences of cache files for the original simulation and the resimulation result. You can always disable Resimulate to go back to the original cache.

The Amplify Resolution parameter increases the resolution of the resimulation grid. A value of 1.0 doubles the number of voxels for each axis, producing a total 8x increase in the voxel count compared to the original grid. If the original simulation grid consisted of 1 000 000 voxels, the resimulation grid will have 8 000 000 voxels. A value of 2.0 will quadruple the number of voxels on each axis for a total of 64x increase. 

The Wavelet Strength parameter controls the strength of the wavelet turbulence itself.

You can adjust the Amplify Method parameter if needed. This controls how velocity is sampled. The Wavelet Nice method will produce a higher quality turbulence effect at the cost of simulation time. The Interpolate method can be used if the Wavelet channel is not exported.


Start the simulation as usual to resimulate with wavelet turbulence.
Column
width60%