Compositing
Use the extra layers of a 360 or 180 render in Nuke or DaVinci Resolve / Fusion: seamless effect layers, depth, motion vectors, Object IDs, stencil layers and alpha.
Last updated About 4 hours ago
This article covers using the extra layers a 360 or 180 render can write, layer by layer: the seamless effect layers, depth, motion vectors, Object IDs, stencil layers and alpha. For each it says what the layer holds, how to use it in Nuke and in DaVinci Resolve / Fusion, and where its render settings are.
Before You Start
Render to an
.exr SequencewithMultilayerticked, or to.exr Sequence (OWL). The beauty and every layer then go into one file per frame (see Output File Formats).Keep
Intermediate Bit Depthat16 Bit(the default with a Pro license) or32 Bit, and work in 32-bit float in your compositing software, so values above 1 are kept.To check which layers a file holds, open it in a viewer such as DJV and use
File>Layers:
The DaVinci Resolve steps below use its
Fusionpage. In Fusion Studio, read each layer with aLoadernode (Formattab) instead ofMediaIn; the other nodes are the same.
Seamless Effect Layers
With Seamless 360 Post Process, the Seamless Post Process Output setting (Pro) can write bloom and the lens effects as layers as well as, or instead of, baking them into the image, so you can adjust them in compositing. For its options and what each needs, see Seamless Post Process Output in Output.
AddedLight: bloom, lens flares, the dirt mask and the light shafts' glow. Add it to the clean beauty.finish.vignette: the vignette, as a multiplier from0(black) to1(no change).finish.grain: the film grain, as noise around1. The EXR metadata lists how strongly it applies.finish.ca: chromatic aberration, as pixel offsets forIDistortin Nuke.Depth of field, motion blur, exposure, local exposure and the light shafts' fog darkening always stay in the beauty. They aren't written as layers.
Nuke: Shuffle each layer out, add AddedLight with a Merge (plus), multiply by finish.vignette and finish.grain with a Merge (multiply), and use finish.ca with IDistort. On an equirectangular image, pad its left and right edges before IDistort, so the offsets at the join pick up pixels from the other side.
DaVinci Resolve (Fusion page): add a MediaIn node for each layer and pick the layer in its Image tab's Layer menu. Combine them with Channel Booleans nodes: Operation set to Add, with Alpha To set to Do Nothing, for AddedLight, and Multiply for the vignette and grain.
Depth
The depth layer (M_OWL360Depth, Pro) stores the real distance from the camera in centimeters, with no steps at the seams, or a 0 to 1 map if you render it through a Material Instance. For how to render it, see Depth.
Load the layer or file named after your instance, or the layer whose name ends in
M_OWL360Depth. Its exact name on each route is in Depth.A 0 to 1 map is ready to use. For real distances, your software needs to work in 32-bit float, and you then map the distance range you need to black and white. Nearly every value is far above 1 and the sky reads 100,000,000 or more (about 1e13 from Unreal Engine 5.8), so treat any very large depth as sky.
Nuke: Shuffle the depth layer into depth.Z for ZDefocus and other depth tools, or use a Grade to map a distance range to 0 to 1.
DaVinci Resolve (Fusion page): load the depth layer with its own MediaIn node and connect it as the foreground of a Channel Booleans node, with your image as the background. On its Aux tab, tick Enable Extra Channels and set To Z Buffer to Red FG. Depth Blur and the other depth tools then read it.
After Effects:
Import the EXR sequence and add
Effect > 3D Channel > EXtractoR.Choose the depth layer for red, green and blue.
For real distances, use a 32 bpc project and set
Black Pointto 0 andWhite Pointto the farthest distance you need, in centimeters. An 8 or 16 bpc project clips every value above 1.
Motion Vectors
The motion layer (Pro) holds, for every pixel of the finished 360 image, where that pixel was one frame before and will be one frame after, for motion blur or frame-rate changes in compositing. For how to render it, see Motion Vectors.
It is always 32-bit. The values are in pixels of the 360 output, in its own layout. Across the left and right join of an equirectangular image, they take the short way round.
Channels are as Nuke expects: forward motion in red and green, backward in blue and alpha, with up as positive.
On stereo projections, including ODS, each eye has its own vectors within its half of the frame.
Vectors near the poles are kept to a usable length.
Nuke: Shuffle the motion layer into the motion channels. VectorBlur and Kronos read it as it is. To change the frame rate, for example from 24 fps to 60 or 90 for headsets and domes, use Kronos with these vectors.
DaVinci Resolve (Fusion page): load the motion layer with its own MediaIn node and connect it as the foreground of a Channel Booleans node, with your image as the background. On its Aux tab, tick Enable Extra Channels, set To X Vector to Red FG and To Y Vector to Green FG, then connect the result to Vector Motion Blur.
Object IDs (Cryptomatte)
The Object IDs layers are a cryptomatte of the 360 image (Pro): you pick objects in your compositing software and get a matte for them. For how to render them, and how to render them on a farm, see Object IDs.
Nuke: use the Cryptomatte node and pick the objects in the viewer.
DaVinci Resolve (Fusion page): use the Cryptomatte node and pick the objects in the viewer. It needs DaVinci Resolve Studio 20 or later; earlier versions need a third-party plugin.
Stencil Layers
Stencil Clip Layers (Movie Render Queue, Pro) write chosen actor or data layers as their own layers, with the correct colors and full post-process effects. Add Default Layer writes everything else to one more layer, to composite them over. For how to set them up, see Stencil Clip Layers. In Movie Render Graph, use render layers instead.
Nuke: Shuffle each stencil layer out and Merge (over) it onto the default layer or the beauty.
DaVinci Resolve (Fusion page): add a MediaIn node for each stencil layer, pick the layer in its Image tab's Layer menu, and combine them with Merge nodes.
Alpha
With Include Alpha and the 360 Camera's Show Only list, the render has an alpha channel around the chosen meshes. Unreal renders no pixels (bloom, particles and so on) around them, so for correct colors use stencil layers instead. For how to set it up, see Include Alpha in Output.
Nuke: Merge (over) the render onto your background.
DaVinci Resolve (Fusion page): Merge the render onto your background. If its alpha isn't used, right-click the clip in the Media Pool and set Clip Attributes > Video > Alpha Mode to match the file (Premultiplied or Straight).