3
$\begingroup$

I have two render layers.

layer 1 layer 2

I am trying to layer one over the other so it creates an inverted effect through the computer monitor.

current render

If you haven't noticed already, my current problem is that the black silhouettes of the character outside of the monitor in the latter render layer cover up the freestyle lines of the characters in the former layer.

Here is my current node setup:

my node setup

The problem is this node in particular:

enter image description here

The Multiply node only replaces any pixels found in the black area of the alpha mask with more black pixels. I want my nodes to erase all pixels found in the black area of my alpha mask instead.

I will have to use something other than the Multiply node since it currently looks impossible to customize it so it does what I want it to do.

What nodes can I use instead of a Multiply to fix my issue?

EDIT: Here's the .blend:

$\endgroup$
2
  • $\begingroup$ I'm not sure without looking at the blend file, but I think the answer lies in masking the characters into 2 parts via the monitor alpha channel and then treating them separately. $\endgroup$ Apr 24, 2016 at 23:38
  • $\begingroup$ added the .blend file in the post $\endgroup$ Apr 24, 2016 at 23:42

2 Answers 2

2
$\begingroup$

The trick is to subtract the alpha channels of the 2 render layers and then use the new alpha to separate the black characters outside the monitor area. Then that can be combined on top of the other layer mix you already had.

enter image description here

$\endgroup$
2
  • $\begingroup$ Let me know if this is the solution you were looking for. $\endgroup$ Apr 24, 2016 at 23:58
  • $\begingroup$ This is what I had in mind. Thank you so much! $\endgroup$ Apr 25, 2016 at 1:24
3
$\begingroup$

Keying Node

In this particular case I would use the Keying node to mask out the inverted image.

enter image description here

It will allow you to get the area with the key-color you picked.

enter image description here.

Then you just have to overlay the second layer after running the Chroma key filter as you already did.

$\endgroup$
0

You must log in to answer this question.

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