Search Unity

No shadows on Android

Discussion in 'Android' started by DvMR, Oct 17, 2017.

  1. DvMR

    DvMR

    Joined:
    Jun 12, 2015
    Posts:
    9
    Has anyone experienced any issue with real time lighting for Android projects? I have tried the following

    Direction Light with : Hard Shadows, Very High Resolution, default everything else

    Project Settings/ Quality : Hard and soft shadows, Very High resolution, shadow distance = 50, default everything else

    All settings in Lighting as default (except changing environment source to colour)

    Cast and receive shadows is on for every object

    Phone : Samsung S7

    And the damn thing still won't work, any ideas
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,019
    Hi!
    Which version of Unity do you use?
    Which graphics API?
     
    xuqi likes this.
  3. DvMR

    DvMR

    Joined:
    Jun 12, 2015
    Posts:
    9
    Hi! Thanks for the quick reply!

    2017.1.0f3, and how do I did find the graphics API?
     
    MilosPolo likes this.
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,019
    Edit -> Project settings -> Player
    Select "Android" tab
    There's a checkbox "Auto graphics API".
    If it's checked, try unchecking and moving the APIs around.
     
  5. DvMR

    DvMR

    Joined:
    Jun 12, 2015
    Posts:
    9
    I have unchecked the box and tried with OpenGLES3/ OpenGLES2 and Vulkan taking the top spot but with no change unfortunately
     
  6. DvMR

    DvMR

    Joined:
    Jun 12, 2015
    Posts:
    9
    Bumping this, really need a solution
     
    exe2k likes this.
  7. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,019
    Which quality level did you edit?
    The default one is highlighted with green.
     
  8. DvMR

    DvMR

    Joined:
    Jun 12, 2015
    Posts:
    9
    That was it! I didn't realize each one had a separated options section. Changed the shadow settings and it's all good!

    Thank you so much, that has been a head scratcher for a while!
     
  9. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,019
    You're welcome :)
     
  10. dradb

    dradb

    Joined:
    Jan 10, 2015
    Posts:
    86
    Thank you! I've been tearing my hair out over this for a couple of days. I'd built a small test app that had an identical setup to my very big main app. Both were set for performance. I could not understand why my main app had no shadows. This fixed it.

    Now that I have it working, should I really be using something like the "Dynamic Shadow Projector" on mobiles?
     
    Last edited: Jun 1, 2019
  11. RedClawStudios

    RedClawStudios

    Joined:
    Apr 23, 2015
    Posts:
    6
    Thank you for this, worked for me, though took me a couple minutes to realise it is the matrix of check boxes at the top and selecting the droplist to fine tune.

    Very happpy now thanks.
     
    unity_EuJ95viBEb_kPg likes this.
  12. CreeperMods

    CreeperMods

    Joined:
    Jul 31, 2023
    Posts:
    3
    The quality settings, IT WORKED!

    Edit: I was dumb, because i set the quality to very low and the shadows didn't work well haha.