Skip to main content
Render Layers

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.

  1. In OWL 180 / 360 Renderer, under Deferred Renderer Data: Additional Post Process Materials, tick M_OWL360Depth. An older job may list it as World Depth, which renders the same material.

  2. Keep Use High Precision (32-bit) Output ticked 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.

  3. Render to an .exr Sequence with Multilayer ticked.

  • The depth layer is fully opaque, whether or not Include Alpha is 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.SceneDepthFudgeFactor with value 1e-8.

  • The layer is named after the material: its name ends in M_OWL360Depth. A job made with Generate Jobs names it OWL360CameraStitchM_OWL360Depth. A Movie Render Graph render 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.

  1. Create a Material Instance of M_OWL360Depth and set Max Distance in centimeters (20000 is 200 m). Near is 0; Max Distance and the sky are 1.

  2. Tick Invert if your tool expects white for near.

  3. Add the instance to Additional Post Process Materials, in place of M_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.