Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Shadows not working

Discussion in 'Global Illumination' started by NaBUru38, Sep 14, 2015.

  1. NaBUru38

    NaBUru38

    Joined:
    Jan 26, 2014
    Posts:
    12
    Hello, I have two similar projects. Shadows work fine in one, but don't in the other.
    • The objects have the standard shade. The cast and receive shadows options are enabled.
    • The point light has realtime baking, and soft shadows at maximum strength.
    • The objects are correctly aligned with the light.
    • The main camera is set to either forward or deferred rendering path, nothing changes.
    • The quality settings has a shadow distance value of 1000, since the scene scale is 1 unit per pixel approx.
    Curiously, shadows worth in the scene window, but not in the game window or in the executable. As I said, I tried to change the camera settings with no success.

    Any sugestions? Thanks!
     
    ArachnidAnimal and drumonman like this.
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    You might have to adjust shadow map range in the quality settings.
     
    RavenOfCode likes this.
  3. drumonman

    drumonman

    Joined:
    Nov 25, 2013
    Posts:
    5
    We are also having this issue with no shadows in our scene after updating to 5.2.1p2. I don't think it's displaying the realtime lights at all. Like NaBUru38 mentioned, it shows in scene window but not in game.

    None of our quality settings changed from the last build.
     
  4. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,760
    I have the same issue:
    Case 733005
    https://fogbugz.unity3d.com/default.asp?733005_htl3297keb4tf3m4

    I uploaded it to dropbox if anyone wants to see for themselfs:
    https://www.dropbox.com/s/bbhtmbfrzhhfu25/BugReport-RealtimeLightsOcclusion.zip?dl=0
    It's only 2 MB download

    To reproduce:
    1. Notice the realtimelights are working
    2. Bake the occlusion data
    3. Suddenly the realtime lights turn off in the editor and player
     
    drumonman likes this.