Skip to content

Math T3D

Summary

The Math T3D does arithmetic on every voxel, like the Math TOP: negate, square, combine channels, multiply and add, remap a range of values to another, or round.

Parameters - OP Page

Channel Pre OP Preop ⊞ - An operation applied to every channel first. Menu · default Off

  • Off off
  • Negate negate
  • Positive pos
  • Root root
  • Square square
  • Inverse inverse

Combine Channels Chanop ⊞ - Combines all four channels into one value, written to every channel. Menu · default Off

Channel Post OP Postop ⊞ - An operation applied to every channel last. Menu · default Off

  • Off off
  • Negate negate
  • Positive pos
  • Root root
  • Square square
  • Inverse inverse

Integer Integer ⊞ - Rounds the result. Menu · default Off

  • Off off
  • Ceiling ceiling
  • Floor floor
  • Round round

Parameters - Multi-Add Page

Pre-Add Preoff - Added before multiplying. Float · default 0

Multiply Gain - Multiplies every channel. Float · default 1

Post-Add Postoff - Added after multiplying. Float · default 0

Operation Op ⊞ - Premultiplies or un-premultiplies the colour by the alpha. Menu · default No Operation

  • No Operation no_op
  • Pre-Multiply RGB by Alpha premultrgbbyalpha
  • Divide RGB by Alpha rgbdivalpha
  • Divide RGB by Alpha and Fill rgbdivalphafill

Parameters - Range Page

From Range Fromrange1 Fromrange2 ⊞ - The range of values to remap, for all channels. Float × 2 · default 0, 1

To Range Torange1 Torange2 ⊞ - The range they are remapped to. Float × 2 · default 0, 1

From Range R Fromranger1 Fromranger2 ⊞ - The range to remap, for red only. Float × 2 · default 0, 1

To Range R Toranger1 Toranger2 ⊞ - The range red is remapped to. Float × 2 · default 0, 1

From Range G Fromrangeg1 Fromrangeg2 ⊞ - The range to remap, for green only. Float × 2 · default 0, 1

To Range G Torangeg1 Torangeg2 ⊞ - The range green is remapped to. Float × 2 · default 0, 1

From Range B Fromrangeb1 Fromrangeb2 ⊞ - The range to remap, for blue only. Float × 2 · default 0, 1

To Range B Torangeb1 Torangeb2 ⊞ - The range blue is remapped to. Float × 2 · default 0, 1

From Range A Fromrangea1 Fromrangea2 ⊞ - The range to remap, for alpha only. Float × 2 · default 0, 1

To Range A Torangea1 Torangea2 ⊞ - The range alpha is remapped to. Float × 2 · default 0, 1

Parameters - Common Page

Output Resolution Outputresolution ⊞ - Whether the output takes its size from the first input or from Resolution. With nothing connected, Resolution is always used. Menu · default Use Input

  • Use Input useinput - The same width, height and depth as the first input.
  • Custom custom - The size set in Resolution.

Resolution Resolution1 Resolution2 Resolution3 ⊞ - Width, height and depth of the output in voxels, when Output Resolution is Custom or nothing is connected. Memory grows quickly: 256 × 256 × 256 at 16-bit float is 128 MB. Int × 3 · default 64 · min 1

Input Smoothness Inputfiltertype ⊞ - How the inputs are sampled when their size differs from the output. Interpolate Pixels is smooth; Nearest Pixel keeps hard, blocky voxels. Menu · default Interpolate Pixels

  • Nearest Pixel nearest
  • Interpolate Pixels linear
  • Mipmap Pixels mipmap

Passes Npasses - Has no visible effect on this operator. Leave it at 1. Int · default 1

Pixel Format Format ⊞ - The output's pixel format. Use Input copies the first input's. Choose a float format for values outside 0–1: negative numbers, distances, velocities, or densities above 1. With nothing connected, Use Input gives 8-bit. Menu · default Use Input

Bypass Bypass - Passes the first input through unchanged. Toggle · default Off

Version Version - The T3D version of this operator. Mention it when reporting a problem. Str

Help Help - Opens this operator's page in the T3D documentation. Pulse

Operator Inputs

  • Input 0: Input T3D_in1 - The volume to process.

Operator Outputs

  • Output 0: Output T3D_output - The result.