1
$\begingroup$

I have a scene with two different render layers. The first one is a background with Sky texture. The second one is some images of mountains with alpha channel. For second layer I need Transparency to have an alpha channel to get a background with Sky texture as a sky. The thing is if I enable transparency, the first layer renders as one total alpha channel. If I disable transparency the second layer renders without alpha channel and I can't apply the first layer as sky because the second layer overlaps it by solid black. if I render them separately I lose one of them. Layers rendered separately both layers rendered with transparency Both layers rendered without transparency Overlaping Attachement to the first answer

$\endgroup$
2
$\begingroup$

The problem is that the layer with the landscape and the clouds does not have an alpha channel (that is why the alpha over operation does not work). In the film section enable "transparent"

enter image description here

To use the background set on the world settings enable "environment" on the layer passes.

enter image description here

Then connect the environment socket of the rendered layer to the alpha over node to use as background:

enter image description here

|improve this answer|||||
$\endgroup$
  • $\begingroup$ You can see on some screenshots landscape has alpha. I can check use background on the landscape layer to have sky texture bu I want to compose them in the compositor separately. $\endgroup$ – Random generalist Jun 27 '17 at 17:05
  • $\begingroup$ Wait I think I missed something. $\endgroup$ – Random generalist Jun 27 '17 at 17:20
  • $\begingroup$ Thank you. Problem solved. I thought that check environment in passes and in layers is the same. $\endgroup$ – Random generalist Jun 27 '17 at 17:30
1
$\begingroup$

Use node "Set Alpha" for completely removing transparency:

enter image description here

|improve this answer|||||
$\endgroup$
  • $\begingroup$ If I use Set Alpha on environment layer it just goes black. Doesn't seem to have any sky texture. $\endgroup$ – Random generalist Jun 27 '17 at 17:07

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