Nice people of Blender SE.

I'm using Compositor to blur my HDRi (as suggested by others on BSE).
Cycles render engine.

However, the environment behind objects isn't rendered, there's just a black cutout.
Therefore any applied blur results in an annoying black halo around objects.

Black halo occuring when combining blurred environment with objects. enter image description here

Sure, I can render the environment separately, but it's not very practical when handling multiple scenes or animation.

How can i separate the environment without these black cutouts?

  • 1
    $\begingroup$ You could create an additional view layer that has all collections disabled and therefore would only render the environment. Add another Render Layer in the compositor and select the view layer that only contains the environment. Would that work for you? $\endgroup$ Commented Dec 28, 2019 at 16:31
  • $\begingroup$ Thanks a lot for your response. I found that reccomended here on SE and also in the Blender manual, and it works reasonably well. But have you got any idea why are there those black cutouts? Just curious :). $\endgroup$ Commented Dec 28, 2019 at 16:49
  • 1
    $\begingroup$ Probably in order to compute the final image like this: docs.blender.org/manual/en/latest/render/layers/passes.html $\endgroup$ Commented Dec 28, 2019 at 17:17
  • $\begingroup$ Well it seems using a separate view layer is the way to go here. I'll stop looking for another solution. Cheers. $\endgroup$ Commented Dec 28, 2019 at 17:26

1 Answer 1


I was just curious :) Because render View Layers doubles rendering if I'm right.

You can use existing setup, just ...

  • add Set Alpha node and plug inverted Alpha to create transparency in BG
  • and use InPaint node to recreate missing environment

Note: because of alpha antialiased edge, I added Delete/Erode node with value -1 to get rid of one pixel that did InPaint node job slightly darker

enter image description here enter image description here enter image description here

  • $\begingroup$ Great solution thanks! :). I had no idea about these nodes since I don't use compositor very much. $\endgroup$ Commented Jul 11, 2020 at 9:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .