1
$\begingroup$

I would like my mountain to be invisible after rendering. And I want just Objects in front of it (like trees) to be seen, but not behind the mountain.

$\endgroup$
2

1 Answer 1

6
$\begingroup$

To make the object transparent as alpha channel:

  • use a holdout shader so it renders as transparent

    enter image description here

  • Place the object on a different layer and use that layer as mask:

    enter image description here

  • Use a Pass index for the object and use that on the compositor to substract the object from the final render:

    enter image description here (click on the image to enlarge)

  • Similarly, you can assign a pass index to the material and use that as alpha on the compositor:

    enter image description here (click on the image to enlarge)

$\endgroup$
2
  • $\begingroup$ What i tried to do was making things behind the mountain invisivle, while it was invisible itself. Holdout worked together with transparency. $\endgroup$
    – Data
    Commented Mar 2, 2016 at 18:45
  • $\begingroup$ I would like to upvote this more than once. $\endgroup$
    – Mörkö
    Commented Mar 2, 2016 at 21:11

You must log in to answer this question.

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