1
$\begingroup$

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.

Question
How can i separate the environment without these black cutouts?

$\endgroup$
  • 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$ – Robert Gützkow Dec 28 '19 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$ – Jachym Michal Dec 28 '19 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$ – Robert Gützkow Dec 28 '19 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$ – Jachym Michal Dec 28 '19 at 17:26
1
$\begingroup$

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

| improve this answer | |
$\endgroup$
  • $\begingroup$ Great solution thanks! :). I had no idea about these nodes since I don't use compositor very much. $\endgroup$ – Jachym Michal Jul 11 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.