# Rendering object reflection/shadow without object?

**URL:** <https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701>\
**Category:** Rhino for Windows\
**Created:** [June 16, 2015, 1:41am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701 "2015-06-16T01:41:04Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [June 16, 2015, 1:41am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/1 "2015-06-16T01:41:04Z")

</div>

How do I get a render output where the objects in the model are essentially not visible/hidden but their shadow and reflection on the ground plane are showing in a separate channel?

\*\* Tagged in Scripting because I’m looking for a scripting solution.

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [June 24, 2015, 9:10pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/2 "2015-06-24T21:10:44Z")

</div>

Moved to the “Rhino for Windows” category, as you’ll find more rendering experts here.

---

<div class="post-metadata">

**Author:** ![Micha](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/micha/32/770226_2.png) [@Micha](https://discourse.mcneel.com/u/Micha)\
**Post date:** [June 25, 2015, 4:51am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/3 "2015-06-25T04:51:21Z")

</div>

Per Vray? Enable “only in secondary” at the material options.

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [June 25, 2015, 8:30am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/4 "2015-06-25T08:30:28Z")

</div>

Thank you @Micha ! That works fine, but I realize this does not really ‘catch’ the shadow/reflection in a separate channel as in my alpha channel is empty. Is there is a simple VRay options solution for this or will I have to implement a shadow/reflection catcher?

---

<div class="post-metadata">

**Author:** ![Micha](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/micha/32/770226_2.png) [@Micha](https://discourse.mcneel.com/u/Micha)\
**Post date:** [June 25, 2015, 8:38pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/5 "2015-06-25T20:38:47Z")

</div>

Maybe it helps if you use the wrapper material for the ground.

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [July 4, 2015, 4:52am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/6 "2015-07-04T04:52:38Z")

</div>

@Micha Also related, do you know if there is a setting for controlling reflection such that if there are a couple objects in the scene (with reflective materials), I don’t want the objects’ reflections to show on any of the other objects’ surface. I only want the environment reflections to show on the objects. Is that possible?

---

<div class="post-metadata">

**Author:** ![Micha](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/micha/32/770226_2.png) [@Micha](https://discourse.mcneel.com/u/Micha)\
**Post date:** [July 5, 2015, 4:01pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/7 "2015-07-05T16:01:10Z")

</div>

Material option “ignore objects in secondary” could help you.

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [July 6, 2015, 4:36pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/8 "2015-07-06T16:36:06Z")

</div>

Thank you, @Micha! Just what I need!

---

<div class="post-metadata">

**Author:** ![Max1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/max1/32/45917_2.png) [@Max1](https://discourse.mcneel.com/u/Max1)\
**Post date:** [November 1, 2016, 10:57am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/9 "2016-11-01T10:57:05Z")

</div>

Hi. I have your same problem. I would like render an object with its shadows, but just that without other materials, like the image in attachement. I read also about the use of Dome light, but I would maintain my light set. I’m a vray beginner. Could you explain step by step how an I proceed? Thank you so much.

 ![](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/f/2fae6eac6c6af90a30c9e2a54a6343e400b3c846.JPG)

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [November 1, 2016, 11:59am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/10 "2016-11-01T11:59:16Z")

</div>

@Max1 In order to get the shadow in your alpha channel, you need to use a shadow wrapper. Here is how to do that:

In your VRay Material Editor, create a VRay Wrapper Material. Do the following in the wrapper material’s settings:change the base material to the material that’s applied to the ground plane; enable ‘Affect Alpha’ and ‘Shadows’ and set the alpha contribution to -1. Finally, apply the wrapper material to the ground plane.

Here is a pretty helpful video by @Fernando_Rentas showing what I explained above: [https://www.youtube.com/watch?v=tKS9U93HvTM](https://www.youtube.com/watch?v=tKS9U93HvTM)

---

<div class="post-metadata">

**Author:** ![Max1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/max1/32/45917_2.png) [@Max1](https://discourse.mcneel.com/u/Max1)\
**Post date:** [November 1, 2016, 12:03pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/11 "2016-11-01T12:03:52Z")

</div>

> [@krsnadas](#):
>
> In order to get the shadow in your alpha channel, you need to use a shadow wrapper. Here is how to do that:
> 
> In your VRay Material Editor you create a VRay Wrapper Material. Do the following in the wrapper material’s settings:change the base material to the material that’s applied to the ground place; enable ‘Affect Alpha’ and ‘Shadows’ and set the alpha contribution to -1. Finally, apply the wrapper material to the ground plane.

Thank’s for your instructions. After this I have to compose the alpha channel in photoshop? Please, could you explain how compose in phtoshop to obtain my needs? thank you

I see that in that video the author creates a dome light to use wrapper material. I have a light set-up yet, and can’t use dome-light setup. How can obtain the same result without using dome-light?

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [November 1, 2016, 12:26pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/12 "2016-11-01T12:26:43Z")

</div>

I use the shadow wrapper all the time without a dome light and it works for me 🙂

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [November 1, 2016, 12:35pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/13 "2016-11-01T12:35:02Z")

</div>

Yes, you’d have to compose it in Photoshop. I’m not a Photoshop expert but what I do is save the ‘shadow pass’ render (the shadow as obtained above) as a targa file. Then in Photoshop, I go to channels and do Ctrl + Click on the Alpha channel which selects the shadow and then paste it in the document which has the object image.

---

<div class="post-metadata">

**Author:** ![Max1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/max1/32/45917_2.png) [@Max1](https://discourse.mcneel.com/u/Max1)\
**Post date:** [November 1, 2016, 2:03pm UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/14 "2016-11-01T14:03:07Z")

</div>

Ok. Thank’you. I did it. It works fine! 😊  
i have just another question. If I render the scene with a visible white ground (by a standard material, not wrapper), the shadows are just a little colored by the color of object. If I render the scene with a wrapper material applied to the floor, and I save the render of the object as a targa file, with alpha channel (that contain the shadows) and compose them in photoshop, I obtaine the same result for the shadows (even if in the composition the ground floor is transparent) but shadows are not colored, are just in grey gradient. Do you know why?  
Thank you so much for your time!

---

<div class="post-metadata">

**Author:** ![krsnadas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/krsnadas/32/46010_2.png) [@krsnadas](https://discourse.mcneel.com/u/krsnadas)\
**Post date:** [November 2, 2016, 6:23am UTC](https://discourse.mcneel.com/t/rendering-object-reflection-shadow-without-object/21701/15 "2016-11-02T06:23:50Z")

</div>

@Max1 Is this what you’re looking for? [http://www.workshop.mintviz.com/tutorials/matte-shadow-and-reflection-using-v-ray-2-0/](http://www.workshop.mintviz.com/tutorials/matte-shadow-and-reflection-using-v-ray-2-0/)

(the above uses the VRayDirt Material as a texture to get the reflection in the alpha)
