Aller au contenu

Relight Node

By Kriss Norde

Relight adds light sources to a scene by analyzing the shapes of people and objects to illuminate them realistically.

Overview

DaVinci Resolve Studio only.

Unlike a simple shape node fixed on screen, Relight analyzes the image to create a Surface Map and uses it to make light react properly: it follows the curves of objects, reflects off highlights and disappears into shadows. It is useful when you wished you had another light in the scene, to accentuate an existing light to match another shot, or to make day-for-night grading more realistic.

Relight creates the illusion of depth but does not calculate 3D relationships between objects: shapes cannot cast shadows and no depth information is produced.

Where to find this node

  • Effects Library: Tools > Matte > Relight
  • Quick add: right-click in the Node Editor → Add Tool > Matte > Relight

Inputs

  • Input (orange) - the footage to relight.
  • Effect Mask (blue) - optional. Limits the effect to the pixels within the mask.
  • Normals (green) - an externally created normal map, used instead of the one generated by the node.

Setup

Relight needs a structure around it: a MediaIn, a Merge and an effect such as ColorCorrector or Brightness/Contrast.

  • The MediaIn goes to the orange inputs of Relight, ColorCorrector and Merge (background).
  • The ColorCorrector goes to the green foreground input of the Merge.
  • Relight goes to the blue effect mask input of the Merge.

View the Merge in one viewer for the final result, and Relight in the other viewer to drag the light around the frame.

Controls tab

Surface Map
Use Internal (generated by the node) or Use Normals Input (external map connected to the green input).
Output Surface Map
outputs the Surface Map as a multi-colored image, to feed into a second Relight where you place and adjust the lights.
Directional / Point Source / Spotlight
Directional (light from a specific direction at an infinite distance), Point Source (from a central point), Spotlight (point source directed into a cone).
Relighting Map Preview
when checked, shows the alpha of this light's effect (bright areas show where Relight affects the image). When unchecked, shows the image with the light mask in the alpha.

Light Properties:

Brightness
strength of the applied grade. It does not add brightness on its own, it amplifies the changes made in the grading tools.
Reach
how much reflections dim with distance from the light source.
Contrast
how harsh or gentle the gradient is between light and dark.

Surface Properties:

Glossiness
gives the illusion of a metallic sheen to reflective surfaces.
Specularity
when Glossiness is applied, controls how metallic and shiny that sheen is.
Shadow Softness
how much light penetrates into shadows due to ambient reflections.

Depending on the light type:

  • Azimuth/Elevation XY (Directional): the direction the light comes from.
  • Beam Angle (Spotlight): how broad the cone is, also adjustable in the viewer.
  • Edge Softness (Spotlight): softness of the cone edges.
  • Light Position (Point Source and Spotlight): position of the emitter, easier to adjust in the viewer.

External Map:

Rescale Oversaturated
reinterprets an external Surface Map with intensely saturated colors that is dark or black in some areas.
Reinterpret Left/Right
swaps the direction of an external Surface Map whose surfaces appear concave instead of convex.
Reinterpret Up/Down
swaps the direction of an external Surface Map whose surfaces appear lit from below when the light is above them.

Use cases

  • Add the light that was missing on set.
  • Accentuate an existing light to match another shot.
  • Make day-for-night grading more realistic.

Tips

  • The ColorCorrector in the setup can be replaced by any other effect: it produces the correction, while Relight provides the light mask to the Merge.