MasterGrade Matchbox

MasterGrade is a Matchbox shader for colour correction. It is also the default colour tool in the Image node, but is available in Action and Batch or Batch FX. MasterGrade is inspired by the grading algorithms in Autodesk Lustre, but extended and refined to meet the demands of floating-point media and HDR displays.

Tip: Whenever you use the MasterGrade, display the Scopes in a viewport and show the RGB Parade preset. This will help you visualize the changes.
MasterGrade in Action or Image
MasterGrade in Batch or Batch FX

MasterGrade provides three modes optimized for grading the three types of colour spaces: video, logarithmic, and scene-linear. This controls the default grading toolset in the Primary tab and the scaling and response of the tools in the Tone tab.

Scene-linear mode:

Logarithmic mode:

Video mode:

By default, MasterGrade uses the project's working colour space to set its grading mode to use. But you can set the mode manually, or set a preference to set a specific mode for every new MasterGrade.

To set the mode manually:

  1. In MasterGrade, click Control.
  2. Set Image Type to one of the three modes.

To set a specific default mode:

Tip: You should generally use the mode based on the colour space of the media you are grading. However, there is nothing to prevent you from, for example, grading log footage with the video-oriented toolset if that is your desire. MasterGrade does not alter the colour space of the media.

Using MasterGrade Primary and Tone Controls

When in the Primary and Tone controls, every mode has a set of vertical sliders on the right, and a set of tabs and colour wheel on the left.

The sliders:

Important: Certain controls make use of both the slider as well as the colour wheel. In that case, the slider provides the master, or neutral, adjustment while the colour wheel provides the differential RGB adjustment. The master sliders depend on the MasterGrade mode, but they are the ones that duplicate the colour wheel tabs.
Sliders that behave as master controls
Video Mode Scene-Linear Mode Logarithmic Mode
Lift Exposure Brightness
Gamma Contrast Contrast
Gain Offset Log Gamma
Offset

The colour wheel:

Because Bright is the select control, the white line points to the dot marking the value of the colour wheel's Brightness control. The dot is white because the Brightness slider's box is white (highlighted in red on the left).

Then, you can see at glance the colour wheel values for Contrast and Gamma by matching their master slider's box (highlighted in green for Contrast and in blue for Gamma) to the dots in the colour wheel.

The gearing of both the colour wheel and the sliders is set to allow very precise adjustments. However, Alt+Space+click speeds up the slider's response.

Primary Controls

The Primary Grade controls available depend on the mode selected for MasterGrade.

Video Mode Primaries

Lift slider
The Master component of the Lift tool. Lift adjusts blacks while preserving whites. The white pivot for Lift may be adjusted in the Controls tab.
Gamma slider
The Master component of the Gamma tool. Gamma adjusts midtones while preserving blacks and whites. The black and white pivots for Gamma may be adjusted in the Controls tab.
Gain slider
The Master component of the Gain tool. Gain adjusts whites while preserving blacks. The black pivot for Gain may be adjusted in the Controls tab.
Offset slider
The Master component of the Offset tool. Offset shifts the entire tonal range lighter or darker.
Saturation slider
Controls the colour saturation.

Log Primaries

Brightness slider
The Master component of the Brightness tool. Brightness shifts the entire tonal range lighter or darker. Two units of Brightness adjustment are equivalent to one photographic printer point when working in Academy ADX10 colour space (and a similar amount for many other log spaces).
Contrast slider
The Master component of the Contrast tool. The effect of the Contrast tool is modified by the adjacent Pivot control. A Pivot near grey will preserve midtones while adjusting Contrast. With a Pivot near white, Contrast will behave similarly to Video Gamma.
Pivot slider
Adjusts the Pivot for the Contrast tool. The Pivot sets the point where Contrast adjustments have no effect. A Pivot of -1 corresponds to the minimum value of the logarithmic colour space and a Pivot of +1 corresponds to the maximum value.
Log Gamma slider
The Master component of the Log Gamma tool. Log Gamma applies a power-law adjustment to the logarithmic colour values. (This gives a different effect than traditional Gamma in video colour spaces.) The black and white pivots for Log Gamma may be adjusted in the Controls tab.
Saturation slider
Controls the colour saturation.

Scene Linear Primaries

Exposure slider
The Master component of the Exposure tool. Exposure shifts the entire tonal range lighter or darker. The units are in photographic F-stops.
Contrast slider
The Master component of the Contrast tool. The effect of the Contrast tool is modified by the adjacent Pivot tool. A Pivot near grey will preserve midtones while adjusting Contrast. With a Pivot near white, Contrast will behave similarly to Video Gamma.
Pivot slider
Drag either horizontally or vertically to adjust the Pivot for the Contrast tool. The Pivot sets the point where Contrast adjustments have no effect. The units are photographic F-stops with 18% grey at 0.
Offset slider
The Master component of the Offset tool. Offset adjusts blacks while preserving whites. The Offset adjustment is optically equivalent to adding or subtracting non-imagewise veiling glare. It may also be used to correct the zero-point of digital camera data.
Saturation slider
Drag either horizontally or vertically to adjust the Saturation.

Tone Controls

The Tone menu provides targeted adjustments of precise ranges of tonality from shadows, through midtones, to highlights.

Five main tonal controls are provided. Each control has both a Master slider for neutral adjustments and a colour wheel for modifying colour balance.

Each of the five main tonal ranges also has two additional dedicated sliders to fine tune the range of tones that it will affect. Click the buttons left of the colour-wheel to show the range control sliders for that tonal range.

Blacks slider
The Master component of the Blacks tool. This tool is useful for fogging or crushing black tones. The range of this tool may be adjusted using the Start and Width sliders to the right.
  • Start sets the lightest tone that will be affected.
  • Width controls how quickly the tool's response kicks in.
Shadows slider
The Master component of the Shadows tool. This tool is useful for lightening or darkening shadows while not moving the black point. The range of this tool may be adjusted using the Start and Pivot sliders to the right.
  • Start sets the lightest tone that will be affected.
  • Pivot sets the black point.
Midtones slider
The Master component of the Midtones tool. This tool is useful for adjusting a targeted range of middle tones. The range of this tool may be adjusted using the Centre and Width sliders to the right.
  • Centre specifies the tonal value that will receive the biggest effect.
  • Width determines the range of tones that will be affected.
Highlights slider
The Master component of the Highlights tool. This tool is useful for lightening or darkening highlights while not moving the white point. The range of this tool may be adjusted using the Start and Pivot sliders to the right.
  • Start sets the darkest tone that will be affected.
  • Pivot sets the white point.
Whites slider
The Master component of the Whites tool. This tool is useful for burning or darkening white tones. It is also useful for controlling whites between SDR and HDR. The range of this tool may be adjusted using the Start and Width sliders to the right.
  • Start sets the darkest tone that will be affected.
  • Width controls how quickly the tool's response kicks in.
S-contrast slider
Controls the S-contrast tool. This tool is useful for modifying the contrast while preserving black and white, by pivoting around both black and white. Increasing the contrast creates an S-shaped response.

The operation of the Tone controls changes based on the Image Type selected in the Controls tab (Scene-linear, Logarithmic, Video).

Curves

The Curves are applied after the Primary and Tone controls of a MasterGrade.

Every mode has four curves available: Red, Green, Blue, and Master. The Master curve is applied to R, G, and B equally and after the channel-wise red, green, and blue individual curves.

Note: In Scene-linear mode, the graph is in units of F-stops relative to middle grey to provide a perceptually balanced way of editing a curve. So you can precisely adjust the shadows without needing to zoom in while at the same time adjustments may be made to a wide range of highlights without needing to zoom out.

The curves possess a number of properties peculiar to meet the requirements of a solid grading tool:

To display a pixel's colour values in the curves display:

To add a control point to a curve:

  1. Click the curve selector to select a curve (Master, Red, Green, Blue).
  2. Holding A, click the curve to add a control point.
  3. Release A.
    Note: There is a limit of 30 control points in total.

To delete a control point from a curve:

  1. Click the curve selector to select a curve (Master, Red, Green, Blue).
  2. Holding D, click the control point to remove.
  3. Release D.
    Note: You cannot delete the last two control points of a curve.

To precisely move control points:

To zoom in an out of the graph:

To pan the graph:

To reset the view:

To reset the graph:

Control Menu

The Control menu contains controls for Image Type, Clamping, Pivot points, and RGB Controls.

Image Type
Controls which type of grading controls are presented: Scene-linear, Logarithmic, or Video.

You can set the default setting in the TimelineFX / Batch / Batch FX preferences, in the MasterGrade section.

Important: Changing the Image Type resets the Primary, Tone, and Curves settings. You may use Undo to recover the previous values.
Clamping
Allows independent specification of a black and white clamp point and may be individually enabled or disabled. By default there is no clamping.
Pivot
Sets a White and Black pivot point that modify the behavior of certain Primary grading controls. These grading controls pivot around 0 and/or 1 (in floating-point) by default. Setting different pivot points is useful when dealing with media where black and white fall somewhere other than 0 and 1. Examples of this are most logarithmic colour spaces and HDR video colour spaces.
  • Video toolset: Lift, Gamma, and Gain are affected by the pivot points.
  • Log toolset: The Log Gamma control is affected by the pivot points.
RGB Controls
You may switch the Colour Wheel to an RGB Sliders representation.

To switch between the two, you can:

  • Use the RGB Control Mode button in the Control menu.

  • Alt+Downward-swipe in the wheel area.

You can also set your preferred default in the In the TimelineFX / Batch / Batch FX preferences, in the MasterGrade section.

Note: Regarding custom Matchbox development: although MasterGrade is a Matchbox, it doesn't use the usual Matchbox user interface widgets and layout. These specialized MasterGrade widgets are not currently available for custom shader development.