Color Mapping and Rendering#

Kit-CAE operators that produce visual output support scalar coloring through field selection, colormaps, and property locking.

Field Selection#

Each operator that supports coloring has a Colors [Field Selection] section in the Property panel. To color a visualization:

  1. Select the operator prim in the Stage panel.

  2. In the Property panel, scroll to Colors [Field Selection] and click Add Target.

  3. Navigate to the desired field in the dataset and click Select.

Colors Field Selection section in the Property panel with Add Target

Kit-CAE supports three coloring modes depending on the field shape:

  • Single-component field (shape N,1): Colors directly by the scalar value. For example pressure or temperature at each point/cell.

  • Three-component field (shape N,3): Colors by the computed magnitude of the vector. For example, a velocity field with three components (x, y, z) at each point/cell is colored by the overall speed.

  • Three separate single-component fields: Select all three individually (for example, velocity_x, velocity_y, velocity_z). Hold Ctrl or Shift to multi-select. Kit-CAE interprets them together as a vector and colors by magnitude.

This selection is explicit; you control exactly which data drives the visualization.

Colormaps#

Kit-CAE includes several built-in colormaps: afmhot, cividis, gist_gray, and gist_rainbow (default). The location of the colormap and range settings depends on the operator type:

  • Faces, Streamlines, Points, Glyphs: Expand the operator prim in the Stage panel and navigate to Materials > ScalarColor > Shader. Set the domain fields to control the color range and use the lut field to select a different colormap.

    Shader properties showing domain and lut fields
  • Volume, Slice: Expand the operator prim and navigate to Material > Colormap. The color range and transfer function are configured here.

    IndeX Colormap properties showing Domain, Domain Boundary Mode, and transfer function

Color Map Range Behavior#

For time-varying data where field values change across time steps, the color map range can behave in different ways:

  • Clamp: Lock the range to the current values

  • Grow: Expand the range to include new values as time progresses

  • Do nothing: Leave the range unchanged

This is useful for animations where you want a stable color scale across all time steps. To manually specify ranges, go to the colormap and set the domain values directly.

Lock Mechanism#

Operator re-execution can reset property values (such as the color range) to auto-computed defaults. The lock mechanism prevents this:

  1. Set the property to the desired value.

  2. Right-click the property field, select Locks, then select Lock.

  3. The locked value persists through operator re-execution.

To allow automatic updates again, right-click and select Locks > Unlock.

Right-click menu showing Locks options on a Colormap prim

Shader Parameters#

Volume rendering and other operators use MDL shaders with parameters controlled through a separate API schema. This provides explicit control over rendering behavior. If a custom shader is applied, its properties may be named differently from the defaults.

For most use cases, the default shader parameters work well. Advanced users can explore the Raw Properties view in the Properties panel to see all shader parameters.

Raw USD Properties view showing shader inputs

Try It: Tune the Color Mapping#

In the previous Try It you created Faces, Streamlines, a Volume, and a Volume Slice on the vehicle dataset. Now set colors and adjust ranges on each one.

Volume#

  1. Hide /World/CAE/Streamlines_Fluid_Domain, /World/CAE/VolumeSlice, and /World/CAE/UnitSphere by clicking the eye icon next to each prim in the Stage panel. Leave only the Volume and Faces visible.

  2. In the Stage panel, expand /World/CAE/Volume_Fluid_Domain and navigate to Material > Colormap.

  3. Set the color range to 0 (min) and 30 (max).

  4. Set Domain Boundary Mode to clampToTransparent. This makes values outside the range fully transparent, keeping the visualization focused on the region of interest.

  5. Adjust the transparency curve to control which values are opaque and which fade out.

    Volume Colormap with range 0 to 30 and clampToTransparent Volume rendering with adjusted color range showing velocity around the vehicle
  6. Lock the Colormap by right-clicking the fields, selecting Locks, then Lock. This prevents future recomputes from resetting your settings.

  7. Once you are satisfied with the volume coloring, hide the Volume operator.

Volume Slice#

  1. Optionally hide /World/CAE/Volume_Fluid_Domain to focus on the slice. Show /World/CAE/VolumeSlice by clicking its eye icon.

  2. Select the slice plane prim under the Volume Slice operator. Use the transform gizmo to position the plane through the vehicle.

  3. In the Stage panel, expand /World/CAE/VolumeSlice and navigate to Material > Colormap.

  4. Set the color range to 0 (min) and 40 (max). Set Domain Boundary Mode to clampToEdge.

    Volume Slice Colormap with range 0 to 40 and clampToEdge Volume Slice positioned through the vehicle with adjusted color range

Tip

Translate the slice plane back and forth along an axis to see how the field values change across the domain.

Streamlines#

  1. Hide all operators except /World/CAE/Streamlines_Fluid_Domain and /World/CAE/UnitSphere. Show the Faces operators as well so you can see the vehicle body for context.

  2. Select /World/CAE/Streamlines_Fluid_Domain. In the Property panel, scroll to Colors [Field Selection] and click Add Target. Select Pressure from FlowSolution to color by pressure, or shift-select Velocity_0, Velocity_1, and Velocity_2 to color by velocity magnitude.

    Streamlines Colors Field Selection with Add Target
  3. Expand Streamlines_Fluid_Domain in the Stage panel and navigate to Materials > ScalarColor > Shader. Adjust the domain fields to set a meaningful color range. To try a different colormap, click the folder icon next to the lut field and browse the available options.

    Shader properties showing domain range and lut browse option
  4. Lock the domain fields by right-clicking them, selecting Locks, then Lock. Streamlines recalculate every time you move the sphere; without locking, the color range resets on each update.

    Streamlines colored around the vehicle with faces visible

Tip

Select the UnitSphere and move it to a different position. The streamlines recompute from the new location, and the coloring updates accordingly. The streamlines follow the sphere; do not move the streamlines prim itself.