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. Dismiss Notice

Resolved Unable to bake directional lights. Is it even possible?

Discussion in 'Editor & General Support' started by bryanchew1994, Sep 3, 2023.

  1. bryanchew1994

    bryanchew1994

    Joined:
    Apr 12, 2023
    Posts:
    7
    Solved : Lightmap UVs were not enabled on the models.

    Despite the option to bake directional lights, I find i am unable to do so despite setting my meshes to static. Any Ideas? I can bake point lights just fine, but am unable to do so for directional lights.

    Thank you in advance, and I wish everyone who reads this well.
     
    Last edited: Sep 5, 2023
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    „unable to do so“ is missing a description of things you tried, and what the results were. Also: editor version, render pipeline. Did you read the lighting manual?
     
  3. bryanchew1994

    bryanchew1994

    Joined:
    Apr 12, 2023
    Posts:
    7

    2022 LTS

    Render Pipeline: Built-in

    Yes I saw the lighting manual, perhaps I missed something? But what?

    Results after bake are just… grey? Nothing happened?
     
    Last edited: Sep 3, 2023
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    Can you bake point and spotlights?
    Did you go through the Lighting window to see if anything is missing, overriding or disabled?
     
  5. bryanchew1994

    bryanchew1994

    Joined:
    Apr 12, 2023
    Posts:
    7
    Point lights can bake but I haven’t tried spot lights.
     
  6. bryanchew1994

    bryanchew1994

    Joined:
    Apr 12, 2023
    Posts:
    7
    I have tried making a new scene, and a white cube, and even so the baking doesn’t work.
     
  7. bryanchew1994

    bryanchew1994

    Joined:
    Apr 12, 2023
    Posts:
    7
    Correction, baked directional light working in 2021LTS, and 2022 LTS : Empty Scene with a cube and light test.
     
    Last edited: Sep 3, 2023
  8. bryanchew1994

    bryanchew1994

    Joined:
    Apr 12, 2023
    Posts:
    7
    Solved: Lightmap UVs were not enabled in the models.