Search Unity

Subractive gives black terrain after backing

Discussion in 'Global Illumination' started by demonixis, Jun 24, 2020.

  1. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hello,
    In previous iteration of the development of my game, I used the subractive mode for lightmap backing. Now I use Indirect which gives better results. For performances reason, I want to use subtractive on dedicated maps on mobile devices.

    So I have duplicated my PC map and rebaked it using subtractive mode. The result is wrong because my terrain is black. If I create a new map with a new terrain, without the content of my other maps, it's ok, it bakes well. If copy some content from my other maps, the terrain is black.

    Any idea on how to debug that?
     
  2. Pema-Malling

    Pema-Malling

    Unity Technologies

    Joined:
    Jul 3, 2020
    Posts:
    328
    Hey there, a few questions:
    Which version of Unity are you on? And I assume you are using URP?
    Are you using the same lighting settings for both scenes, and which resolution are you using for the lightmaps?

    Some screenshots or a small repro project with the scene causing issues, would be helpful.
     
  3. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hello, it was an issue on my side ;)
     
    Pema-Malling likes this.