2
$\begingroup$

I was messing around with render layers and passes in cycles and was trying to render a layer where object1 was intersected by object2 however object2 was on a separate layer that was not being rendered; so instead of object1 being cut in half and the portions of object1 would not not be visible had all the layers been rendered remaining invisible, ( was hoping they would be transparent) they are visible.

Here is the image with all the layers rendered at once:

rendered image with all layers

Here is the layer with only object1 rendered (note: it is reflecting objects from other layers but the objects themselves are not rendered):

layer with object1 only

You'll notice that the portion where the cube is in front of the glossy pain (object1) and more visibly where the glossy pain intersects the ground (in this case both the ground and the cube are object2) are rendered, however I wish to have theses arias of the glossy pain to be hidden so that this layer can be used in compositing. Is there a way to do that? I'm thinking something to do with the Light Path node in object1's texture but I can't figure it out. If this question doesn't make sense or you need clarification let me know.

$\endgroup$
  • $\begingroup$ In renderlayers you need to select the ones with other objects in the Exclude part $\endgroup$ – VRM May 12 '15 at 19:37
  • 1
    $\begingroup$ Thanks for that! It's so obvious now but hey (note: I excluded in the mask layer section to get it to work not the exclude, so the block of boxes next to the exclude, this is for anyone coming to this after the fact to fin the answer for themselves) $\endgroup$ – Micro May 12 '15 at 19:41
  • $\begingroup$ @NoviceInDisguise Would you like to stick that in an answer? $\endgroup$ – PGmath Jul 16 '15 at 2:08
  • $\begingroup$ @PGmath Done :) $\endgroup$ – VRM Jul 16 '15 at 15:11
1
$\begingroup$

You need to use the Exclude boxes for this. Go to Properties > Render Layers and make sure all the layers including the objects you do not want to have render on that layer are selected in the Exclude portion. This will basically do the same thing as hiding it, but for that render layer only.

Exclude Layers From Renderlayer

$\endgroup$

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.