User Tools

Site Tools


Sidebar


Site Information


Interactive Maps

Sidebar

blender:cycles:viewlayers

View Layers / Depth Map

I have a relatively simple Blend: a couple Suzanne's and some text. I want to be able to render either just the normal image, or the depth map image.

In the Compositor, I've created two Render Groups: 1 to render the depth map ("Depth Map View Layer Render"), 1 to render the normal image (with background image) ("Normal View Layer Render").

What The Manual Says about the View Layer Panel: "Use for Rendering - The active view layer will be used during rendering."
https://docs.blender.org/manual/en/latest/render/layers/layers.html

What Actually Happens: Whichever "View Layer Group" I have selected in the Compositor gets rendered (OR if NEITHER group is currently selected, then the last selected group), regardless of which "View Layer" is active in the View Layer Panel.

Note: selecting the "Render Single Layer" option in the View Layer Properties panel has no effect on which group gets rendered.

The Blend file (works in both Blender 2.81 / 2.82a): bgimagenode_depthmapnode.zip

blender/cycles/viewlayers.txt · Last modified: 2020/04/13 07:24 by terrill