1

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.

Glorfindel
  • 636
  • 1
  • 11
  • 18
Data
  • 35
  • 5

1 Answers1

6

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)

Glorfindel
  • 636
  • 1
  • 11
  • 18
  • What i tried to do was making things behind the mountain invisivle, while it was invisible itself. Holdout worked together with transparency. – Data Mar 02 '16 at 18:45
  • I would like to upvote this more than once. – Mörkö Mar 02 '16 at 21:11