eThis page provides information on the Mapper component.

Page Contents

 

Overview


The Mapper uses textures to affect a channel in the simulation's grid. The chosen grid channel can either be directly set to the texture's values when the simulation starts, or it can gradually approach the texture's values over time. The Buildup Time specifies the time it takes for the channel to reach the full value specified in the texture under the influence of the Mapper.

The Mapper affects all Phoenix simulators in the scene unless they explicitly exclude it.

UI Path: ||Phoenix FD Menu|| > Create > Mapper

 

Parameters



 

Enabled | enabled – Animatable checkbox that turns on and off the effect of the Mapper.

Initializer | initializer – The Mapper can work in two different modes. When this is checked, the Mapper just sets the initial conditions for the grid and stops affecting the simulation afterwards. Otherwise, while the simulation runs, it gradually or immediately keeps changing the values of the selected grid or particle Channel towards the value in the Map (similarly to a Source in Volume Brush mode).

Channel | channel – Specifies which channel is affected by this helper. It can be one of the following:

Disabled - Disables this node.
Temperature - Maps the voxels of the simulator for the Temperature channel to the texture values. Keep in mind that this channel should be mapped with a texture with a range that is typically [ 300, 2000 ] for Fire/Smoke simulations.
Smoke - Maps the voxels of the simulator for the Smoke channel to the texture values. This channel is typically in the range [ 0, 1 ].
Fuel - Maps the voxels of the simulator for the Fuel channel to the texture values. This channel is typically in the range [ 0, 1 ].
Velocity - Maps the voxels of the simulator for the Velocity channel to the texture values. This channel can take both positive and negative values, and its range is not limited. If your texture produces no result, try using a Multiply / Divide node to boost the values. Velocity is typically in the range of [ 10, 1000 ].
RGB - Maps the voxels of the simulator for the RGB channel to the texture values. Essentially, this will transfer the texture color to the RGB channel.
Viscosity - Maps the voxels of the simulator for the Viscosity channel. This channel is typically in the range [ 0, 1 ].

Affected Particle Systemsaffectpartsys - Allows the Mapper to separately affect the Liquid, Foam, Splash or Mist particles.

The Mapper can not create or delete particles - it can only change values in their channels, such as particle Velocity, RGB or Viscosity.

Map | map – Specifies the texture that will copy its values into the Simulator. For channels that may require values higher than 1 (such as Velocity or Temperature), you can use a regular Maya Multiply / Divide node to expand the texture's values.

Mask | mask – A mask that specifies the region which will be affected by the Mapper. It allows you to limit the effect of the Mapper only to a certain volume in the Simulator. White values in the texture mean that the region is affected and black values mean that the region is not affected. Gray values in between mean that the region is affected, but will take longer time to reach the values from the Map

If the Buildup Time is 0, gray mask values will be treated as white, and the Mapper will act with full strength in such voxels. You could use a V-Ray DistanceTex as a Mask in order to confine the effect of the Mapper to a geometry volume, in order to make it easier to setup the effect visually.

Buildup Time | influence – When Initializer is disabled, this parameter specifies the time it takes (in seconds) for the channel to to gradually reach the value specified in the Map. If Buildup Time is 0, the effect is instant and fluid is set to the values from the Map immediately.

When using 2D Textures (such as Ramp for example) together with the Phoenix Mapper you will need to set up a Projection and adjust the 3D placement node in order to get correct mapping.

While creating the texture, right-click over the Menu item in the Create panel and choose "Create as projection". Then select the projection node, press on the Interactive placement button and adjust your placement node.

 


Region


Width/Length/Height Span spanX, spanY, spanZ – Specifies a rectangular region (as a % of the simulator along each axis) which will be affected by the Mapper.

 

How-To's


 

Following are some example setups you can create using a Mapper.

 


 

A Checker (set as a projection) texture is plugged into the Map parameter of the Phoenix FD Mapper. When you Start a simulation, the Mapper will look at this texture to determine what values to apply to the voxels of the Simulator. Note that if you are running a Liquid simulation, the FLIP liquid particles will be affected and not just the voxels.

The Projection Mapping is set to Planar - you can rotate the Projection gizmo to change its orientation. The Mapper works in a volume, so surface UV mapping does not make sense, and thus the Simulator has no UV coordinates to map the Checker to.

Buildup Time is set to 0 so the Mapper will instantly set the voxels of the Phoenix FD Simulator to the values of the texture for each frame of the simulation.

The Channel option is set to Smoke so the Mapper will set the texture values only for the Smoke Channel. If you want to affect multiple channels simultaneously, you need to set up multiple Mapper nodes.

 


 

A Ramp is used as a Mask for the Mapper. The Mask specifies where the Map values are applied inside the Phoenix FD Simulator.

The color of the mask is used as a multiplier for the texture values - if the mask is black for a certain voxel or particle, the texture will not be applied there.

The image to the right shows the effect of the Ramp used as a Mask for the Checker (Projection) texture. Because the Ramp is white only in the middle, the Checker texture is only applied by the Mapper right at the center of the Simulator.

 


 

The mask functionality becomes quite useful when you start using a V-Ray Distance Texture.

The Distance Texture takes Input Geometry and returns a black and white texture based on how far the Input Geometry is from the object that the Distance Texture is applied to.

A regular poly sphere is created and placed inside the Simulator to be used as Input Geometry for the V-Ray Distance Texture.

The Mapper works directly on each voxel or particle of the Simulator. When the Distance Texture is evaluated, it looks at each voxel or particle and checks 'How far is the Sphere from that voxel'. If the answer (in this case) is 'Greater than 5', then the value returned to the Mapper is equal to the Far Color parameter (black). Thus, the voxels of the Simulator which are farther than 5 units from the Sphere geometry are not affected - the value for the Mask there is black.

 


 

You can use the Mapper to affect any grid or particle channel.

The video to the right shows the Mapper affecting the Grid RGB Channel instead of the Smoke density grid channel, and a V-Ray User Color texture with a solid Green color set as the Map parameter for the Mapper.

Once the smoke passes through the volume of the sphere geometry, it inherits the RGB color set by the Mapper for that region of the Simulator.

For this setup to work, a Phoenix FD Source is created to emit Smoke and RGB (the color is set to Gray). On the Phoenix FD Simulator → Output roll-out, RGB Grid Channel export is Enabled.