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

Question Lightmaps became completely black.

Discussion in 'Global Illumination' started by Danila_Navaev, Jan 9, 2023.

  1. Danila_Navaev

    Danila_Navaev

    Joined:
    Apr 25, 2022
    Posts:
    7
    I baked the light on the CPU in shadow mask mode and after that all the lightmaps turned completely black. Before that, I had shadows disabled and everything worked, but after I selected them, I got this result.
    More than 160 error reasons were also displayed in the console:
    [PathTracer] InitializeLightmapData job failed with extension: 830ab86104c35ac903515080b3632d81 with exit code 2.
    It was with disabled shadows, but then everything worked.
     
    Last edited: Jan 17, 2023
  2. Danila_Navaev

    Danila_Navaev

    Joined:
    Apr 25, 2022
    Posts:
    7
    here are the screenshots
     

    Attached Files:

  3. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Danila_Navaev likes this.
  4. Danila_Navaev

    Danila_Navaev

    Joined:
    Apr 25, 2022
    Posts:
    7
    I did a little experiment and found out that this was most likely due to too many objects in the scene. I will try to reduce their number or lower the lightmap settings.
     
  5. Danila_Navaev

    Danila_Navaev

    Joined:
    Apr 25, 2022
    Posts:
    7
    Resolved, I increased the brightness of the lights
     
  6. Danila_Navaev

    Danila_Navaev

    Joined:
    Apr 25, 2022
    Posts:
    7
    Update: Everything turned out to be much simpler, the light sources were inside the mesh. With shadows turned on, the mesh was preventing the light from propagating. I pulled the lights out of the mesh and it worked.
     
    kristijonas_unity likes this.