Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Unity 5 : Shadow Windows phone

Discussion in 'Windows' started by kydenz, Mar 14, 2015.

  1. kydenz

    kydenz

    Joined:
    Feb 12, 2014
    Posts:
    19
    Hello,

    Looking at the new Unity 5 I read that the shadows were now available on Windows Phone:

    "Shadows on windows mobile devices now work just like on iOS / Android - no cascaded shadow maps (ie not" too slow on mobile "anymore)."

    So in my szene Unity 5, I activated the "baking" for the statics shadows.
    In my Unity szene my shadows are visible, but when I export Windows phone (Windows phone store 8.1), I have no light on my game, no shadows.

    While the game on Android out shadows and lighting.
    In my Android and Windows rendering quality parameters have the same options.

    Capture.PNG

    I want to know what I'm missing for Windows phone the lighting.
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    What device you're testing on, due driver errors shadows are automatically disabled on the following GPUs:
    Adreno 225
    Adreno 305
    Adreno 330
     
  3. kydenz

    kydenz

    Joined:
    Feb 12, 2014
    Posts:
    19
    I have test on
    Qualcomm Snapdragon 800 MSM8974
    and Snapdragon S4
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Could you attach UnityPlayer.log please.
     
  5. kydenz

    kydenz

    Joined:
    Feb 12, 2014
    Posts:
    19
    How to make ?
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Snapdragon 800 has Adreno 330 inside.
    Snapdragon S4 has Adreno 225 inside.

    The notes are unfortunate - the change for cascaded shadow maps was made much earlier before we discovered that shadows sometimes crash drivers on those devices. Realistically, you wouldn't want to use real time shadows on any real game because these mobile devices are simply too slow for that.
     
  8. kydenz

    kydenz

    Joined:
    Feb 12, 2014
    Posts:
    19
    So there is no way to have shadows on Windows Phone?
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
  10. kydenz

    kydenz

    Joined:
    Feb 12, 2014
    Posts:
    19
    Why you do not do a similar shade system that script directly in Unity that will activate when selecting Windows Phone ?
     
    Last edited: Mar 16, 2015
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,506
    Because this technique is not general enough and doesn't work in all scenarios (for example, there's no self-shadowing).
     
  12. teemukorh

    teemukorh

    Joined:
    Oct 28, 2014
    Posts:
    49
    Clarifying question. Is it possible to make baked static lightmaps to work on Windows Phone 8 and Unity 5?
     
  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Yes, and it should already work.
     
  14. teemukorh

    teemukorh

    Joined:
    Oct 28, 2014
    Posts:
    49
    Doesn't work in our case... Is there something magic? Worked with Unity 4.
     
  15. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Does it work in Editor?
     
  16. teemukorh

    teemukorh

    Joined:
    Oct 28, 2014
    Posts:
    49
    Yes, and on ios and android as well. Switching from directional to non directional seems to work.
     
  17. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    One thing to note, Realtime GI doesn't work on Windows Phone 8, try disabling it in Lighting window, so you can see same results in Editor and WP8, maybe that's the problem
     
  18. teemukorh

    teemukorh

    Joined:
    Oct 28, 2014
    Posts:
    49
    That's already disabled.
     
  19. kydenz

    kydenz

    Joined:
    Feb 12, 2014
    Posts:
    19
    I confirm that this does not work
     
  20. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Bug please with simple project attached.
     
  21. glitchedTime

    glitchedTime

    Joined:
    Jun 5, 2013
    Posts:
    15
    Same thing here, made a bug report. To fix this you can change Directional Mode to Non Directional in General GI settings (lighting), otherwise use Mobile/Unlit (supports lightmap) shader. Also if you change application focus (something like alt tab but for Windows Phone) it stops working, gives the "Trying to reload asset from disk that is not stored on disk" error, and then all gameobjects that were using lightmap becomes completely black. (Lumia 920 - GPU Adreno 225)
     
  22. VladimirTa

    VladimirTa

    Joined:
    Jul 17, 2013
    Posts:
    40
    Same problem here.
    Directional lightmaps don't work on Windows Phone 8.1, but they do work on Android normally.
    Changing to Non-Directional lightmaps work normal on both devices.

    I have made a bug report.
    My testing device is Nokia Lumia 822 with Adreno 225

    Hope this get fixed soon.

    Edit:
    Please vote on this issue so it gets fixed sooner.
    http://issuetracker.unity3d.com/iss...-lightmaps-dont-work-on-windows-phone-8-dot-1
     
    Last edited: Dec 9, 2015