PDA

View Full Version : Hair Self Shadows with directional light


rhythmone
05-07-2009, 05:05 PM
I am wondering if I am doing something wrong. When I use directional lights I cannot get my hair to self shadow. Am I missing something?
Using Maya Software renderer
Depth map shadowS on
Use Mid Dist is off

Duncan
05-07-2009, 05:53 PM
There was a bug with older versions of Maya where one needed to have some non-pfx(i.e. hair) casting shadows in the scene to trigger the shadow map build... perhaps you are hitting this issue. Another possibility is that the shadow map covers too large an area, for example if you have a larger shadow casting ground plane with autoFocus ON for the light. If so you might try turning off useAutoFocus and setting the widthFocus by hand(so that the shadow just maps to the area of interest. Or you could turn off casting of shadows on the ground plane.

Duncan

rhythmone
05-07-2009, 09:50 PM
Interesting... yes, I am on maya 8.0 OSX (non-intel version) so maybe the version is causing it cause at this point all I have is a proxy head model in the scene (no ground plane, no nothing).

Can you elaborate on the non-pfx casting shadows? You mean like an object that casts a shadow on the hair... or another hairSystem that outputs geo vs. pfx?

Because as a test I did place a torus above the hair just to see if I could get some shadows going but it didn't work. BTW this was all with directional lights, the moment I switched to spot lights everything is fine.

Duncan
05-07-2009, 10:50 PM
If spotlights work then it suggests the problem is with the autoFocus of the directional light. (the region that bounds the shadow map)

One other thing that confuses me sometimes is having a large object in the scene( like the room one is in ) blocking the directional light, because it is essentially infinitely far away.

Duncan

CGTalk Moderation
05-07-2009, 10:50 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.