# problem with vray light mat & material wrapper/matte sha

**URL:** <https://forums.chaos.com/t/problem-with-vray-light-mat-material-wrapper-matte-sha/13963>\
**Category:** General\
**Created:** [March 20, 2007, 6:40am UTC](https://forums.chaos.com/t/problem-with-vray-light-mat-material-wrapper-matte-sha/13963 "2007-03-20T06:40:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![highpoly](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@highpoly](https://forums.chaos.com/u/highpoly)\
**Post date:** [March 20, 2007, 6:40am UTC](https://forums.chaos.com/t/problem-with-vray-light-mat-material-wrapper-matte-sha/13963/1 "2007-03-20T06:40:52Z")

</div>

I have a scene with a plane emiting a vray light material and that is the only light in the scene. I have no vray lights or env skylight (set to zero). I also have to have the ground plane accept shadows plus be visible to reflections and contribute to GI, but not be in the alpha since they want to change the background later. using a vray material wrapper (alpha cont -1.0, etc…)  
With this one lightbox emiting GI light in the scene on a visible floor plane its fine, get shadows etc. but when i put a mat wrap to just get the shadows they arent there and i get an ilegal pixels (see below). interesting thing is if I add a vray direct light, the shadow are there using the mat wrapper. Is there some prob with using just GI light and the material wrapper/matte shadows? am i doing something wrong? can someone please help me with this?

> **[Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos](https://www.yahoo.com/)**
>
> Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

> **[Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos](https://www.yahoo.com/)**
>
> Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

thanks

---

<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:** [March 20, 2007, 7:14am UTC](https://forums.chaos.com/t/problem-with-vray-light-mat-material-wrapper-matte-sha/13963/2 "2007-03-20T07:14:30Z")

</div>

For the matte shadow to work, the render engine needs to explicitly know what are the lights in the scene, so that it can compare a non-shadowed version of the scene agains a shadowed one. Obviously, to this end, it must specifically know what is a light source, and what isn’t. However, the self-illuminated VRayLightMtl material does not provide this information.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![highpoly](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@highpoly](https://forums.chaos.com/u/highpoly)\
**Post date:** [March 20, 2007, 7:23am UTC](https://forums.chaos.com/t/problem-with-vray-light-mat-material-wrapper-matte-sha/13963/3 "2007-03-20T07:23:02Z")

</div>

thanks vlado..at least i know why now..  
will the matte/shadow work with env skylight?  
i am guessing it would..i will try that..

thanks!

---

<div class="post-metadata">

**Author:** ![highpoly](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@highpoly](https://forums.chaos.com/u/highpoly)\
**Post date:** [March 20, 2007, 8:55am UTC](https://forums.chaos.com/t/problem-with-vray-light-mat-material-wrapper-matte-sha/13963/4 "2007-03-20T08:55:28Z")

</div>

just FYI for anyone who has been reading, the skylight worked fine with the matte material, but I am sure most of you already knew that!

now there is just white env light, white env reflections, and a black tube surrounding the scene, invisible to GI, camera, cast and receive shadows. worked pretty well I think…alpha is fine too. here a render

> **[Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos](https://www.yahoo.com/)**
>
> Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

---

<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:** [March 20, 2007, 9:34am UTC](https://forums.chaos.com/t/problem-with-vray-light-mat-material-wrapper-matte-sha/13963/5 "2007-03-20T09:34:08Z")

</div>

Yes, skylight will work… V-Ray knows how to deal with it.

Best regards,  
Vlado
