5
$\begingroup$

Instead of editing the alpha for each material, it would be quicker for me in this case to be able to fade out the entire render layer in the node compositor.

The "SetAlpha" node seems perfect for this, but it adds black to the alpha channel that I don't want. The background needs to remain transparent, and not be black.

Here is my simple setup (without the SetAlpha node). How can I fade the "bearing" render layer to zero opacity, leaving only the "freestyle" layer on screen?

enter image description here

Also, I should note that I can't just switch the inputs on the Alpha Over node and use the "factor" to fade out the "bearing" layer, because the "freestyle" layer needs to remain over the top of the "bearing" layer.

$\endgroup$
2
  • $\begingroup$ Did you try a color mix and animating the factor? $\endgroup$
    – J Sargent
    Commented Mar 18, 2015 at 16:53
  • $\begingroup$ This doesn't work, I tried it while working on my answer. $\endgroup$ Commented Mar 18, 2015 at 17:16

2 Answers 2

4
$\begingroup$

I would personally use a 'Set Alpha' and a 'Mix' node in-between the layer you want to fade out and the 'Alpha Over' node:

enter image description here

If you animate the 'Fac' of the 'Mix' node (by inserting keyframes - hovering your cursor over the slider and pressing I) you will mix between the original alpha of the render layer (when 'fac' slider is 0) and a completely black alpha (when slider is 1).

enter image description here

$\endgroup$
3
  • $\begingroup$ Take a look at the question again, "The "SetAlpha" node seems perfect for this, but it adds black to the alpha channel that I don't want. The background needs to remain transparent, and not be black." $\endgroup$ Commented Mar 18, 2015 at 17:23
  • 1
    $\begingroup$ @TARDISMaker That would happen if you only used a 'Set Alpha', which I am not doing. $\endgroup$ Commented Mar 18, 2015 at 17:25
  • $\begingroup$ Ok, I see now. It does seem a bit more complex to me than it needs to be. $\endgroup$ Commented Mar 18, 2015 at 17:29
4
$\begingroup$

Probably the most effective way to fade in alpha is to use the alpha over node.

In the image below, the top color socket is set to completely transparent (I'll explain how to do this further down), and the image is put into the bottom color socket. The factor (the highlighted input) controls the opacity. 0 is 100% transparent, 1 is 100% opaque.

alpha over node

It's the other way around if you switch the color inputs to make this image go in the top and the transparency in the bottom.

To make the color input completely transparent, just use the alpha slider in the color picker drop down. Make sure it's set to 0:

color picker with alpha set to 0

$\endgroup$

You must log in to answer this question.

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