Search Unity

unity can't generate lightmap

Discussion in 'Global Illumination' started by unitymatrix, Aug 14, 2018.

  1. unitymatrix

    unitymatrix

    Joined:
    Dec 29, 2009
    Posts:
    120
    when I want to generate lightmap by clicking "Generate Lighting" button on lighting widnow ,it always stay the 5th section like below:
    upload_2018-8-14_10-53-57.png

    upload_2018-8-14_10-48-26.png

    Thus no lightmapping has been generated.
    I also clear the GI cache,even do it in a new project,nothing different.
    I wanna know reason for it and the solution for it.
     
  2. unitymatrix

    unitymatrix

    Joined:
    Dec 29, 2009
    Posts:
    120
    meantime each time I start a new scene error like this:
    upload_2018-8-14_11-18-15.png

    I know how to clear it. (change aoto generate lightmaping to manual)
    but what's the reason?
    how to solve it thoroughly?
     

    Attached Files:

  3. V_Kalinichenko

    V_Kalinichenko

    Unity Technologies

    Joined:
    Apr 15, 2015
    Posts:
    16
    Hi,
    Thanks a lot for raising this problem!

    Several questions:
    1. What version of Unity are you using?
    2. How much RAM memory do you have?
    3. If you clear GI cache, baked data and restart Editor - does the problem persist?
    4. Do you also see this issue in the new scene inside the current project or in the completely new project created from scratch?
     
  4. unitymatrix

    unitymatrix

    Joined:
    Dec 29, 2009
    Posts:
    120
    Thanks for your reply.

    1. Unity 2017.1.0f3
    2. ram:16G , cpu: intel i7 7700 , graphics card: NVIDIA GTX 970
    3. yes
    4. both
     
  5. V_Kalinichenko

    V_Kalinichenko

    Unity Technologies

    Joined:
    Apr 15, 2015
    Posts:
    16
    Hi again,
    Sorry for replying so long.
    I could not repro this bug on a similar hardware (Intel Core i7, 16 GB RAM, GeForce GTX1070) in Unity 2017.1.5f1. For testing I used a project with primitives (cubes and planes). I assume the issue that you see might probably be related to the Enlighten lightmapping backend GI Cache storage.
    Several suggestions on the possible fix:
    1. You may try switching the lightmapper to Progressive in the Lighting Settings window (Lightmapper field inside the Lightmapping Settings foldout).
    2. The bug might be caused by not having enough HDD space for storing the lightmap cache. The solution is to re-install Unity to the other logical or physical disk, having more HDD space or clean-up the existing space.
    3. You may also try updating your Unity version (either 2017.1.5f1, 2017.4, 2018.1 or 2018.2) and check whether the issue still reproduces in there.
    4. Finally, if nothing of the abovementioned helped, you may submit a bugreport through Unity Bug Reporter (Help-Report A Bug) and we will take a closer look at it.

    Cheers!