11

I made an animation with an environment texture in the background and I would like to have one render layer with only the background image and another render layer with all the objects on a transparent background.

I tried to uncheck the "Use Environment" on the objects render layer, but this rendered the objects on a black background (not transparent). On the other side if I set the film to transparent in the render settings, then the objects are on a transparent background (as I want), but the background layer is empty.

I use Cycles for rendering.

WannaKnow
  • 657
  • 3
  • 7
  • 18

2 Answers2

21

Enable Transparent on the Film section and enable environment on your render passes. The background environment will be avalible by connecting the environment socket.

enter image description here

1

One thing to keep in mind: if you render the Environment pass on the same layer as your foreground object, the shadow catcher plane will cut a hole in the Environment pass. This is bad if you want to then composite your foreground over the Environment as a background, as the area covered by the shadow catcher will be missing!

Same Layer Env Pass

In this scenario, instead render the Env pass on a 2nd render layer and composite as shown above by Cegaton:

Blender shadow catcher - render background separate

Copperplate
  • 1,188
  • 12
  • 25