0
$\begingroup$

So I was messing around and was wondering if i could render this cube invisible but still have it cover the ball. When i disable make it not apear in the viewport it still renders there:

enter image description here

I was hoping it would come out sort of like this mock up:

enter image description here

$\endgroup$
3

1 Answer 1

2
$\begingroup$

Use the holdout shader. Just be wary it will also not render anything else covered by the shaded object. It will not even render world texture.

EDIT: [here's a picture of where to find it[1]

This is in cycles, BTW You find this by going to the material tab, go to surface, click "use nodes". The default shader is Diffuse BSDF, but you can change it using this menu. Use mix shaders in the node editor if you want to mix it with something. "With a Holdout shader, you're basically saying, 'there's nothing here, not even background." When Cycles renders a material with a Holdout shader, it makes that section of rendered image completely transparent, with an alpha of zero. This can be useful in compositing, as the effect can give you a 3D mask" - Blender for Dummies I threw together a quick sample render with very high contrast colors, just to show what I mean. Be careful though, as you can see the mesh with the holdout shader does still cast a shadow.enter image description here

$\endgroup$
1
  • 2
    $\begingroup$ Your answer equal @yann comment, please add more information about what is a holdout shader, how it work and where we can found it. some image would be nice. $\endgroup$ Commented Sep 7, 2017 at 2:23

You must log in to answer this question.

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