Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
blenderpedia's avatar
blenderpedia
Honored Guest
11 years ago

Broken shadow unity 5

Hi there,

A month ago, i updated my project from unity 4 to 5. This process went well, but i discovered that the shadows looked strange. First i thought this was a unity problem, but when i started a new project, the shadows where normal.

I checked all my project settings, and it's hard to find out what is happening.

It does not help if i create a new scene without any script or object, still the weird shadow.

Anyone any idea what is wrong here ?

I added an image with the strange behaviour. The shadow is curved and hard. should be fading away smooth.
shadow_issue.jpg

9 Replies

Replies have been turned off for this discussion
  • I am using unity 5.2.1p2. When i create a new project, it works fine, nothging wrong with these shadows. When i use my main project i get these shadow glitches.

    i don't use cascades, this hits the performance, but when i use 2 or 4 cascades, the shadow is still broken. Switching to deferred rendering fixes the problem, but i like to work with forward rendering.

    These two images show the difference.

    sample_2.jpg ( new project)

    sample_1.jpg ( main project )
  • I have the same issue unfortunately...

    4 Shadow cascades... I have tried various breakpoints with no luck.

    I am using the Legacy Deferred Renderer with a 2 camera multi-depth scene.
  • I have a similar issue, it only occurs if I attach the camera to an object in my scene, like my player object.
  • @nmck: Does this only happen with "VR Supported" enabled?

    If you uncheck the VR but leave everything else the same, does it work?
  • @cybereality: it only happens with "vr supported" enabled. If I disable vr and play it, the shadows are displayed correctly.
  • Just to update that I managed to fix my problem, I'm still not sure what is causing it though. I recreated my player object and assigned the scripts and now it works fine. My old player object is identical and if I attach the camera to the old player object the shadows don't display correctly but with the new player object they do display correctly.

    The only thing difference between the two objects is that my original player object was an imported asset, and the new one I just recreated it within the scene.
  • For the record, this was fixed in 5.3.2p1 and should no longer be an issue in any of our supported versions.