View Full Version : Artifacts in shadow pass

11 November 2005, 01:16 PM
I've had a search about, there seem to be a lot of threads about shadow passes, but none with the problem I'm having.

A seam is appearing along the threshold between the faces on the sphere that are and arent facing the light. Since a picture is worth a thousand words:
Beauty /\

Shadow \/

The best workaround I have found is to use depth map shadows and increase the bias a little, but this isnt ideal and doesnt work with raytraced shadows. Since it can render shadows fine in the beauty pass, where is it getting all this new information from, and more importantly how can I stop it?

11 November 2005, 02:01 PM
What kind of light do u use for it? Do you use MR or Software?

11 November 2005, 01:16 PM
Good points, I should have mentioned before.

I'm getting the same results with maya software, mental ray, depth maps, raytraced shadows, directional/spot lights, and any combination thereof. This leads me to think that the problems are with how I'm setting up the shadow pass, rather than incompatibility with anything else. Also, this is with Maya 7s new render pass features.

11 November 2005, 03:22 PM
I've come across this problem a few times and it's been really annoying. Unfortunately I don't know what causes it but if anyone knows the answer I'd be interested to find out.

11 November 2005, 05:07 PM
For the layer that's rendering the shadow pass, use a layer override to turn off primary visibility of the sphere, or at least turn off receive shadows. That way you just get the shadow on the ground.

Alternately, use another approach to setting up shadow passes, see this tutorial (pardon the pre-Maya 7 screenshot at the top, the rest still works.)


11 November 2005, 09:06 PM
Hereís my shadow pass technique. Iíve found that if I use a useBackground shader, with a matte opacity of .5 I get good results.

CGTalk Moderation
11 November 2005, 09:06 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.