0
$\begingroup$

I have an animated object (A) that goes behind other objects (B) and has it's own render layer. All my objects are actually textures mapped on planes (i use blender as a replacement of after effects), so i can't use the solid as a mask.

Edit: here is a screenshot of the compositor enter image description here

My question is : how to leave A unmasked when it is over B, and mask it when it is behind?

Thanks

$\endgroup$
  • $\begingroup$ @Mr Zak I tryied but i got strange results, as described in this topic link_italic_bold 'code' $\endgroup$ – Thibaut Jun 14 '17 at 16:26
  • $\begingroup$ @Mr Zak I pluged all the render layers with no regards on the order . I checked the option "use alpha" and "anti alias z" $\endgroup$ – Thibaut Jun 14 '17 at 22:56
  • 1
    $\begingroup$ The reason I asked was to know if you use Z output from render layers node to the ZCombine input. $\endgroup$ – Mr Zak Jun 15 '17 at 9:08
  • $\begingroup$ Ok sorry. I uses the Z output indeed. But do you if i have to pay attention to the order ? L'île i would do with an Alpha over node? $\endgroup$ – Thibaut Jun 15 '17 at 9:22
  • 1
    $\begingroup$ Afaik it doesn't matter although it's preferable to feed it according to the rule - first is background, second - foreground. So your setup is like the one here? $\endgroup$ – Mr Zak Jun 15 '17 at 9:30

Your Answer

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

Browse other questions tagged or ask your own question.