Page MenuHome

Shadow pass problem
Closed, ArchivedPublic

Description

Hello

i want simple shadow pass with environment lights on .....
but when i turn on environment lights and "only shadow" on ground plane then i just not get proper shadow

attached image is an example of what i want and what it comes

i could have submit this long ago ..... sorry for the delay ...

and if i am doing something wrong then let me know .... but as far as i know ... one should get proper shadow pass only with one click ....

in the blend file , i have on env lights and "only shadow" on ground plane
when u hit render u can see shadow is only on the radius of AO

turn off the "only shadow " on ground plane and check render ... now you should get proper long shadow .... this is how it has to b while we turn on "only shadow " with env lights

and even when u off env lights . ull get proper shadow

we guys are struggling in 2.63 if possible make some script to make it possible in 2.6X and 2.63 too
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
and i am using blender 2.63 on ubuntu 12.04
with 16 gb ram and ati radion card



thanks

Event Timeline

Hi Brecht,

I can check the code, but need to know if you added "environment light" for "only shadow"? Or is this an accidental side effect.

I did yes. AO was already included in the only shadow material from the start, and when I split that into AO and Environment Light I keep both influencing it (backwards compatible).

AO also still influences it but in this particular file it's not noticeable because AO is set to Multiply mode, so it doesn't make that black shadow any darker.

A workaround is to set the shadow only material ambient to 0.0. That way no AO or environment light will influence it.

Thinking about this more, it's pretty much an acceptable solution to let the material ambient value control this. Sometimes you want the shadow pass to influence it and sometimes not, the material ambient value gives the user control over it.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Archived.Jul 9 2013, 12:13 AM