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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Enlighten and dynamic lights

Discussion in 'Unity 5 Pre-order Beta' started by Elecman, Jan 21, 2015.

  1. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,369
    I thought enlighten supports dynamic lights, but if I rotate a directional light (sun) it starts baking again. What is the definition of a dynamic light?
     
  2. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,782
    Set the baking settings in the Directional light as realtime.
     
  3. shkar-noori

    shkar-noori

    Joined:
    Jun 10, 2013
    Posts:
    833
    It still requires a pre-compute stage.
     
  4. adventurefan

    adventurefan

    Joined:
    Jan 17, 2014
    Posts:
    229
    Did you try putting a rotate script on the sun. Should work fine in play mode.
     
  5. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,369
    Tried that. Didn't work.

    Precompute once, sure. But after that, you should be able to rotate the light without requiring any additional pre-computation, right?

    Didn't try this, but assuming that it works, then why does it need to pre-compute something in the editor but not at runtime?

    @Unity
    Is this a bug or a feature?
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,960
    Are you sure it's not just baking the cubemaps?
     
    shkar-noori likes this.
  7. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,369
    Not sure. How can I check?
     
  8. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    It is expected that it will recompute the cubemaps. Whenever the input lighting changes. Precompute should not start again.

    If you have baked lightmaps, then the the lightmaps will also be recomputed when you change the lights or sky.
     
  9. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,369
    Ok, thanks for clearing that up.