Depth
How to render a depth layer from a 360 or 180 render, its options, and a 0 to 1 depth map for tools that clip.
Last updated About 4 hours ago
The 360 depth layer stores each pixel's real distance from the camera as an extra layer in the multilayer EXR of your 180 or 360 render, for depth-based effects such as fog, depth of field or mattes in compositing. It is a post-process material, M_OWL360Depth: in Movie Render Queue you add it in the OWL 180 / 360 Renderer setting, under Deferred Renderer Data; in Movie Render Graph on the OWL 180 / 360 Renderer node, under Post Process Materials. Needs a Pro license, or adds a watermark.
Render the Depth Layer
The depth layer stores the real distance from the camera in centimeters, with no steps at the seams, so it looks plain white until you map a distance range in your compositing software.
In
OWL 180 / 360 Renderer, underDeferred Renderer Data: Additional Post Process Materials, tickM_OWL360Depth. An older job may list it asWorld Depth, which renders the same material.Keep
Use High Precision (32-bit) Outputticked on that entry if you need accurate distances. On a 16-bit layer, real distances past about 655 m, including the sky, turn into infinity.Render to an
.exr SequencewithMultilayerticked.
The depth layer is fully opaque, whether or not
Include Alphais ticked, so your compositing software shows all of it.From Unreal Engine 5.8, the sky's depth in a 32-bit depth EXR is about 10,000,000,000,000 cm (1e13) instead of about 100,000,000 cm (1e8). In a 16-bit depth EXR the sky was already stored as infinity. Depth thresholds or scales set up on earlier renders can put the sky somewhere else. Treat any very large depth as sky. To get values like earlier versions, add the console variable
r.SceneDepthFudgeFactorwith value1e-8.The layer is named after the material: its name ends in
M_OWL360Depth. A job made withGenerate Jobsnames itOWL360CameraStitchM_OWL360Depth. AMovie Render Graphrender can write it as its own EXR file with that name.How to read it in Nuke, After Effects or Resolve: see Depth in Compositing.
For other layers, and how to add post-process materials: see Post-Process Materials.
A Depth Map from 0 to 1
M_OWL360Depth's default output is in centimeters, so it comes out flat white in any tool or project that clips values above 1. A 0 to 1 map suits those tools, and effects that expect a grayscale map.
Create a
Material InstanceofM_OWL360Depthand setMax Distancein centimeters (20000 is 200 m). Near is 0;Max Distanceand the sky are 1.Tick
Invertif your tool expects white for near.Add the instance to
Additional Post Process Materials, in place ofM_OWL360Depth. It writes its own layer, named after the instance.
A few sky pixels right next to objects read slightly under 1. If you key a matte on the sky, consider a threshold just below 1.