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$
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$
  • 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$ – Strapicarus Sep 7 '17 at 2:23

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.