Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Lightmapping issues on Android with LWRP

Discussion in '2019.3 Beta' started by Krasshirsch, Oct 29, 2019.

  1. Krasshirsch

    Krasshirsch

    Joined:
    Apr 26, 2017
    Posts:
    36
    Setup
    - Unity 2019.3.0b8 on Windows 10 64bit
    - LWRP (Universal Render Pipeline)
    - Linear Color Space / OpenGL ES3.0
    - Samsung Galaxy S7 Edge (Android 8.0.0)

    Hello folks,

    we are currently experimenting with baking lights onto prefabs in Unity using the script provided in this thread.

    https://forum.unity.com/threads/problems-with-instantiating-baked-prefabs.324514/#post-2177524

    While everything works fine in the Editor, the lightmap is utterly corrupted when deployed to an actual mobile device. Has anybody an idea why that is ?

    Editor
    editor.png
    Device
    phone.jpg

    Any help is greatly appreciated.
    Alexander
     
  2. JesOb

    JesOb

    Joined:
    Sep 3, 2012
    Posts:
    1,109
    For me result like that was caused by enabled srp batcher
    If you use it try to disable.
     
  3. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
    Hi. We did have some issue fixed recently related to this and SRP Batcher.

    Could you try disabling it in the pipeline asset to see if it fixes the issue. If not, we will need a repro case / bug reporter to investigate.
     
  4. Krasshirsch

    Krasshirsch

    Joined:
    Apr 26, 2017
    Posts:
    36
    Thanks for the suggestion, we disabled the SRP Batcher, unfortunately without success.
    The lightmap is still broken.
     
  5. JesOb

    JesOb

    Joined:
    Sep 3, 2012
    Posts:
    1,109
    Can you say version number please for LWRP/URP so we can test it on our game and bug report if it not fix our case?
     
  6. Krasshirsch

    Krasshirsch

    Joined:
    Apr 26, 2017
    Posts:
    36
    We are currently using the URP 7.1.2, so if fixed it should be in there, should it not?
     
  7. Krasshirsch

    Krasshirsch

    Joined:
    Apr 26, 2017
    Posts:
    36
    @phil_lira If you message your GitHub account name I can grant you direct access to the repository.
    This way there is no risk of stripping the issue away while setting up a new repo scene.
     
  8. JesOb

    JesOb

    Joined:
    Sep 3, 2012
    Posts:
    1,109
    I think it is not :)

    URP [7.1.2] was 2019-09-19 about 40 days ago, we tested last time a week ago and bug persist so it looks like fix is not in 7.1.2.
    It look like SRP batcher is not URP feature at all bur general SRP one and fix will be in another package that URP uses.
     
  9. Krasshirsch

    Krasshirsch

    Joined:
    Apr 26, 2017
    Posts:
    36
    I understand, the mentioned changes are still locked up in the secret Unity repository vault :)
     
  10. M_R

    M_R

    Joined:
    Apr 15, 2015
    Posts:
    559
  11. Krasshirsch

    Krasshirsch

    Joined:
    Apr 26, 2017
    Posts:
    36
  12. Krasshirsch

    Krasshirsch

    Joined:
    Apr 26, 2017
    Posts:
    36
  13. jacksandhamVA

    jacksandhamVA

    Joined:
    Mar 5, 2018
    Posts:
    1
    Was this resolved? Still have this issue in 2019.3.3f1 and URP 7.2.1.