Realtime Point / Spot light shadows in Unity 5.2.2f1

Hi,

Yesterday I updated my project to unity 5.2.2 and at first I didn’t noticed anything wrong as my scene only uses a few realtime light shadows. However after checking it I do no longer have realtime spot and point light shadow casting (at least for dynamic objects, didn’t have checked for static objects) while it was fine in 5.2.1f1…

I reverted to Unity 5.2.1f1 and it’s OK.

Anyone else having the same problem ?

I tried Unity 5.2.2p1 yesterday and I still have the same problem with it.

After more tests, I noticed that even the light is disabled, not only shadows.
If I set my realtime light to cast no shadows, it works again…

All this seems to be related to occlusion culling: if I bake occlusion culling I have realtime light/shadows casting problems, if I clear the occlusion data no more problem.

Well, I’ve filed a bug report with a repro project: #740841

This bug is fixed in 5.2.2p2.
Thank you Unity Team!

Got the same issue. Installed patch 5.2.2p3, and the problem is still here, but not for all lights !!! If i disable the occlusion culling, it works fine for all lights in the scene…

Yeah I noticed that too… The problem has not been fixed entirely. It solved the problem in some of my scenes but some others have flickering realtime lights as soon as occlusion culling is baked.

I hope they’ll be fixing it soon.

Yep, have the same problem. Works when there’s no occlusion but real times stop when occlusion is on …

Could you please share your scenes in bug reports? The one from #740841 seems to work fine now

@SpiriTx yeah the previous bug case I submitted is fixed by 5.2.2p2 but more complex scene still have problems.

On my side the scene is quite big but I’ll try to shrink materials and texture to see if the problem persist and get a lightweight sample scene.

I’ve been able to reproduce it in a small scene. I’ve just submitted a bug report, case #744169

@SpiriTx QA closed my bug report already and says it’s fixed in an upcoming release… I just hope they aren’t mixing it with the previous bug.

I’ll recheck

Edit: Yep, it’s already fixed in 5.2.2p42380218--161947--oc.jpg

1 Like

Great ! :slight_smile:
5.2.2p4 is for the next week ?

Gave this a shot in 5.2.2p4 and it appears realtime point lights no longer cast shadows regardless of whether or not occlusion culling is enabled.

(However, lights without shadows appear to work fine even with occlusion culling, which wasn’t the case before)

Edit: This appears to be only affecting mixed lights - realtime lights are casting shadows.

Are you using Deferred rendering path?

This might be it:
http://issuetracker.unity3d.com/issues/no-shadows-from-mixed-lights-in-deferred-rendering-path

Nope, we’re in forward rendering.