# shadow question

**URL:** <https://forums.chaos.com/t/shadow-question/54367>\
**Category:** General\
**Created:** [June 26, 2015, 6:09am UTC](https://forums.chaos.com/t/shadow-question/54367 "2015-06-26T06:09:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![emartin8907](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@emartin8907](https://forums.chaos.com/u/emartin8907)\
**Post date:** [June 26, 2015, 6:09am UTC](https://forums.chaos.com/t/shadow-question/54367/1 "2015-06-26T06:09:21Z")

</div>

Hi,

I am wondering if it is possible to use a ground plane for a shadow without seeing the ground plane itself in the reflection of an object.

Please see attached pictures for reference. Red ball is what I have in Maya (see how the reflection ground plane is visible in the red ball as a white square). Blue ball is what I’m trying to get (from keyshot. notice no ground plane and no plane in reflection its just a transparent shadow. )

I am using the material wrapper shadow set up method and it is working for the alpha

I just don’t want the ground plane visible in reflections/ blocking the hdri dome

 ![Balls_Maya.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/f/3/f3c555b9ebde5183955ffa2b21a1188b3877ebc9.jpeg)  
 ![ball_Shadow_Test.129.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/b/b/bb1de5a0951fcac3eb71ad346634f64e36f94f62.jpeg)  
 ![Balls_Maya3.Alpha.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/8/f/8f79ed4ec6f595416a2a28faf19f55f39edcaf46.jpeg)

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [June 26, 2015, 6:32am UTC](https://forums.chaos.com/t/shadow-question/54367/2 "2015-06-26T06:32:21Z")

</div>

Hi,

Have you tried to use the option Matte for all secondary rays available in the Matte properties roll-out ?

---

<div class="post-metadata">

**Author:** ![emartin8907](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@emartin8907](https://forums.chaos.com/u/emartin8907)\
**Post date:** [June 26, 2015, 9:58pm UTC](https://forums.chaos.com/t/shadow-question/54367/3 "2015-06-26T21:58:33Z")

</div>

you mean in the material properties of the material wrapper? I just tested it and the ground plane simply shows up black in the reflection now instead of white.

Here it is with ‘Matte for All Secondary Rays’ off

Here is how it renders set to either ‘With Projection mapping’ or ‘Without Projection Mapping’

 ![shadow_disabled.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/7/a/7a5a2b77f9b478187ac2a11188dec15143404aae.jpeg)  
 ![shadow_wProjection.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/0/7/0752982f51c0fa4691819a0e5473a65cf00cb1f0.jpeg)

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 27, 2015, 8:18pm UTC](https://forums.chaos.com/t/shadow-question/54367/4 "2015-06-27T20:18:59Z")

</div>

Can you post your scene? This works fine for me generally.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![emartin8907](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@emartin8907](https://forums.chaos.com/u/emartin8907)\
**Post date:** [June 27, 2015, 9:05pm UTC](https://forums.chaos.com/t/shadow-question/54367/5 "2015-06-27T21:05:16Z")

</div>

I had to delete the hdr because it made the attachment too big…  
[Shadow\_Test.mb.zip](https://forums.chaos.com/uploads/short-url/tfq3PcUz8Yuh9upVnKnv30qv6sL.zip) (11.6 KB)

---

<div class="post-metadata">

**Author:** ![bvoldm](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bvoldm](https://forums.chaos.com/u/bvoldm)\
**Post date:** [June 28, 2015, 11:12pm UTC](https://forums.chaos.com/t/shadow-question/54367/6 "2015-06-28T23:12:53Z")

</div>

couldn’t you assign a VrayObjectProperties to the ground plane and uncheck visible in reflections?

---

<div class="post-metadata">

**Author:** ![emartin8907](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@emartin8907](https://forums.chaos.com/u/emartin8907)\
**Post date:** [June 29, 2015, 1:47am UTC](https://forums.chaos.com/t/shadow-question/54367/7 "2015-06-29T01:47:21Z")

</div>

tried this but then the shadow is no longer visible in the reflections of my sphere. i am dong automotive rendering and want the car to look ‘grounded’ and have proper shading from it’s own shadow otherwise it looks like its floating. I guess I could use an AO pass for this but I would really like for it to pick up its own shadow properly..

here it is with no ground plane:

here it is with ground plane Object Properties set to not be visible in Reflections and Refractions.

here it is with no object properties- notice the giant black shadow reflecting in the sphere? I want this but without seeing the rest of the plane.

notice how the blue ball in my original post is picking up its shadow over the reflection of the hdr dome- this looks much more realistic than no shadow. not even sure if ao pass will give me what im looking for really.

 ![noGroundPlane_zpsngpc8asc.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/e/5/e5b292f7f7e0ccdc28de36d18e44094ba876e157.jpeg)  
 ![OP_noVisibible_zpsmpwlevgz.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/0/8/08b4d61ff324d5d6d12ef5b1ae0d103427a2b03f.jpeg)  
 ![shadow_disabled_zpsb4yueb3w.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/e/f/ef91fd2c93b022256a0cec51f5a67fab4d09c4f2.jpeg)

---

<div class="post-metadata">

**Author:** ![emartin8907](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@emartin8907](https://forums.chaos.com/u/emartin8907)\
**Post date:** [June 29, 2015, 5:37am UTC](https://forums.chaos.com/t/shadow-question/54367/8 "2015-06-29T05:37:34Z")

</div>

ooo what about this- bake the alpha and use that as opacity mask for ground plane?? Is this possible? I have no experience baking maps but this seems like a simple thing?

with Object Properties applied to the sphere and Primary Visibility turned off on it, here is the rgb and its alpha.

 ![shadow_RGB.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/4/d/4ddca4ee77f9a0eda5273e903fde1b36ef9fb941.jpeg)  
 ![shadow_.Alpha.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/3/2/3219cbbc61472185ecd3f56d56a684f8d8637722.jpeg)

---

<div class="post-metadata">

**Author:** ![bvoldm](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bvoldm](https://forums.chaos.com/u/bvoldm)\
**Post date:** [June 29, 2015, 12:34pm UTC](https://forums.chaos.com/t/shadow-question/54367/9 "2015-06-29T12:34:54Z")

</div>

than how about unchecking “primary visibility” and leaving “reflection/refraction” on? that way the plane still reflects into the sphere but is invisible in the render. oh nevermind. than you won’t see it in the render.

---

<div class="post-metadata">

**Author:** ![yolov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/yolov/32/11920_2.png) [@yolov](https://forums.chaos.com/u/yolov)\
**Post date:** [June 29, 2015, 1:45pm UTC](https://forums.chaos.com/t/shadow-question/54367/10 "2015-06-29T13:45:42Z")

</div>

> [@emartin8907](#):
>
> you mean in the material properties of the material wrapper? I just tested it and the ground plane simply shows up black in the reflection now instead of white.
> 
> Here it is with ‘Matte for All Secondary Rays’ off
> 
> Here is how it renders set to either ‘With Projection mapping’ or ‘Without Projection Mapping’

This is because the matte returns the background environment. If you plug the same texture you’re using for the dome light into the global environment overrides (render settings \> vray tab \> environment) you should get the result I think you’re after.  
The background is black by default and that’s why the matte appears black.  
And it’s reflected as black in the sphere, because there is no global reflection override and black is used by default.  
Using matte for secondary rays should also help on top of all the above.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 29, 2015, 3:17pm UTC](https://forums.chaos.com/t/shadow-question/54367/11 "2015-06-29T15:17:48Z")

</div>

Here is the scene modified with Alex Yolov’s suggestions.

Best regards,  
Vlado  
[Shadow\_Test\_vlado.zip](https://forums.chaos.com/uploads/short-url/xwkIqrcAfQ3lj9io7SKSv6wchWT.zip) (12.3 KB)

 ![matte_rgb.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/8/984086d3ab8e811534a54868cf4e3f9bdc7a57fb.jpeg)  
 ![matte_alpha.png](https://europe1.discourse-cdn.com/chaosprd/original/3X/7/5/7514c25c703d8e364a9cffde8ff50592e537f0d2.png)

---

<div class="post-metadata">

**Author:** ![Algehov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/algehov/32/5551_2.png) [@Algehov](https://forums.chaos.com/u/Algehov)\
**Post date:** [June 30, 2015, 7:13am UTC](https://forums.chaos.com/t/shadow-question/54367/12 "2015-06-30T07:13:56Z")

</div>

Correct me if im wrong, but It feels like this will only fix the issue if you are only using a hdri, which you map into background.  
I’ve had this issue before, and never managed to solve it in a nice way, but instead of only have a hdri that I want reflections/lights/shadows from (then shadows being visible in the reflection) I projected an image onto geometry which I in return wants to behave in the same way. So It needs to be a surface which doesnt recieve light (as thats already baked in) and then returns the same values in reflections. But I still want it to recieve shadows, and having them appear in the reflections aswell.  
I thought this was doable with a Matte Surface, but I’ve never got it to work.

Any idea on how to go about solving this? The projected geometry will not be rendered (or with black alpha). Its only there for more correct reflections and shadows. And sending off light I guess.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 30, 2015, 7:56am UTC](https://forums.chaos.com/t/shadow-question/54367/13 "2015-06-30T07:56:24Z")

</div>

> [@Algehov](#):
>
> Any idea on how to go about solving this? The projected geometry will not be rendered (or with black alpha). Its only there for more correct reflections and shadows. And sending off light I guess.

Is that not what the matte ground plane is doing in the image above? You can map anything to it, not just the projected background, by adding V-Ray material override attributes to its shading group and then you can use any kind of map in its “environment” slot. (Just make sure to set the “matte for secondary rays” to “without projection mapping”.)

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 30, 2015, 8:06am UTC](https://forums.chaos.com/t/shadow-question/54367/14 "2015-06-30T08:06:17Z")

</div>

Take a look at the attached scene. Does it look like what you need? Instead of the checker, you can use any HDRI map that will be mapped to your geometry. If you don’t need to see the geometry with the checker, you can turn off its primary visibility.

Best regards,  
Vlado  
[matte\_shadow.zip](https://forums.chaos.com/uploads/short-url/y2RM9XMCt74NSDAQBbEKuRBHFxU.zip) (8.73 KB)

 ![matte_shadow_alpha.jpeg](https://europe1.discourse-cdn.com/chaosprd/original/3X/1/f/1fd48dcf3c55451fa3415e83786e6753e131cc58.jpeg)  
 ![matte_shadow.jpeg](https://europe1.discourse-cdn.com/chaosprd/original/3X/c/f/cf7b02962c871df28f4a1043a9adc6d8d2124ba0.jpeg)

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 30, 2015, 8:14am UTC](https://forums.chaos.com/t/shadow-question/54367/15 "2015-06-30T08:14:02Z")

</div>

Hm, there’s also a “secondary matte” environment map to be used for matte objects in reflections, but it looks like we didn’t expose this in Maya. Will make a note to add it. You can set it with a Python callback though.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 30, 2015, 8:19am UTC](https://forums.chaos.com/t/shadow-question/54367/16 "2015-06-30T08:19:32Z")

</div>

Here is another setup using the secondary matte environment.

Best regards,  
Vlado  
[matte\_shadow1.zip](https://forums.chaos.com/uploads/short-url/j7M92o4fjPHZC2PHBDbzi0jfnac.zip) (9.12 KB)

 ![matte_shadow1.jpeg](https://europe1.discourse-cdn.com/chaosprd/original/3X/6/2/62a803a64d9cecf495314222449e4733ed01678b.jpeg)  
 ![matte_shadow_alpha1.jpeg](https://europe1.discourse-cdn.com/chaosprd/original/3X/a/6/a6e16ec4f8b8355e3d75199d2d05a85aba807aa4.jpeg)

---

<div class="post-metadata">

**Author:** ![Algehov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/algehov/32/5551_2.png) [@Algehov](https://forums.chaos.com/u/Algehov)\
**Post date:** [June 30, 2015, 8:21am UTC](https://forums.chaos.com/t/shadow-question/54367/17 "2015-06-30T08:21:17Z")

</div>

Oh nice. Looks like it does what im asking for ye. I thought it had to be an image as a “dome” at first. Nice.  
Im not sure I understand what the secondary matte does however? Are they specific for reflections?

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 30, 2015, 8:29am UTC](https://forums.chaos.com/t/shadow-question/54367/18 "2015-06-30T08:29:01Z")

</div>

> [@Algehov](#):
>
> Im not sure I understand what the secondary matte does however? Are they specific for reflections?

It tells V-Ray what background texture to use on matte objects with “matte for secondary rays” enabled and which are visible in reflections/refractions. This may be an environment-mapped texture (like spherical environment), but it can also be a regular texture mapped to the UV space of the object, or a projection texture using some other kind of projection mapping.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Algehov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/algehov/32/5551_2.png) [@Algehov](https://forums.chaos.com/u/Algehov)\
**Post date:** [June 30, 2015, 8:48am UTC](https://forums.chaos.com/t/shadow-question/54367/19 "2015-06-30T08:48:53Z")

</div>

> [@vlado](#):
>
> It tells V-Ray what background texture to use on matte objects with “matte for secondary rays” enabled and which are visible in reflections/refractions. This may be an environment-mapped texture (like spherical environment), but it can also be a regular texture mapped to the UV space of the object, or a projection texture using some other kind of projection mapping.
> 
> Best regards,  
> Vlado

I see. That sounds really nice. Looking forwards to a nightly with it. (Not in the need of that immediately, so I dont have to take the python callback approach).

---

<div class="post-metadata">

**Author:** ![emartin8907](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@emartin8907](https://forums.chaos.com/u/emartin8907)\
**Post date:** [July 9, 2015, 11:15pm UTC](https://forums.chaos.com/t/shadow-question/54367/20 "2015-07-09T23:15:57Z")

</div>

sorry I’m just getting back.

Yolovs suggestion worked great for me thank you!

Also really looking forward to the secondary matte option!

Thanks everyone so much 🙂

[Next page](https://forums.chaos.com/t/shadow-question/54367.md?page=2)
