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

LightBaking: Nothing shows up in the preview window after restarting Unity.

Discussion in 'Global Illumination' started by ArachnidAnimal, Oct 23, 2015.

  1. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,727
    At first I thought it was my imagination, or that I was doing something wrong.
    The issue is the lightbaking preview window is empty when I lightbake a scene and then re-start unity.
    In the screenshot 1, I just lightbaked my scene successfully, I can see each mesh in the preview window.
    The problem is if I restart Unity, nothing shows up in the preview window unless I re-bake the scene. The lightmaps are still there, no problem with that. SO I suspect this is just an issue with previewing a mesh in the atlas.

    Screen shot 1: Just baked scene, I click the mesh and can see the mesh in the lightbake atlas.

    lb1.png
    j


    Screen shot 2: Close unity, restart unity. Nothing shows up in the preview window anymore.
    lb2.png

    None of the meshes show up in the preview window.
    Does anyone know if this is a known issue? Using unity 5.2.1p2.

    (Another verified bug is happening for the camera preview windows, so it might be related the "preview" windows) http://forum.unity3d.com/threads/ca...ameras-at-once-after-exiting-playmode.362096/

    The light atlas is still there as expected. I just cannot preview any individual mesh in the atlas.
    Preview of the entire atlases:
    lb3.png

    j
     
    Last edited: Oct 23, 2015
  2. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,727
    Obviously I need to spend another 4 hours of my time submitting another bug report for the Unity 5.2 branch.
     
  3. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Doesn't the preview work if you check the Auto checkbox?
     
  4. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,727
    I don't want to click the Auto checkbox, because I don't want the scene to be automatically rebaked every time I change something.
    It takes 8 hrs to bake my scene.
    I would think I should be able to open Unity and see the preview from the last bake I did. It was there the last time I closed Unity. The lightmap info is still there, I just can't preview the individual meshes again in the atlas.
     
    Last edited: Oct 30, 2015
  5. Xanthius

    Xanthius

    Joined:
    Aug 20, 2012
    Posts:
    28
    I wonder if this is related to why when I download a baked scene from the asset server, the light maps show up in the editor but they are not being applied in the scene view which forces me to rebuild the maps. I have lost a huge amount of time dealing with this issue for a tight deadline. Grumble Grumble.
     
  6. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    The lightmap is applied correctly in the shaded scene view. The GI preview modes are using intermediate data from the Gi Cache that is not stored in the snapshot. The snapshot only stores the data needed to build a player. We are aware of this and it is on our TODO list.
     
    ArachnidAnimal likes this.
  7. Xanthius

    Xanthius

    Joined:
    Aug 20, 2012
    Posts:
    28
    Ahhh. So the Baked scene view is not using the correct data to display but the lightmaps are being used.
     
  8. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,727
  9. Stamblew

    Stamblew

    Joined:
    Sep 3, 2014
    Posts:
    22
    Is this fixed? I might be doing something wrong, but I am using 2019.1 and I STILL lose the preview lightmap data when restarting Unity. I can't see my lightmaps when I press Open Preview.