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

Dynamic Sun + Baked Lights

Discussion in 'Global Illumination' started by j-baeza, May 18, 2015.

  1. j-baeza

    j-baeza

    Joined:
    May 14, 2015
    Posts:
    26
    Hi all !
    I have a scene with a realtime sun (directional light) and rooms with baked spotlights. When my sun (directional light) is tagged as realtime, the baked lightmap in rooms turn off. When I switch my sun (directionnal) to baked, the baked rooms turn on. When my sun is realtime, i can see the lightmapped rooms in the "baked" global illumination view. Seems like it is disabled in shaded mode... Is it gonna be fixed soon ? Can I have a realtime sun with baked interiors ?
     
  2. Findus

    Findus

    Joined:
    Jun 23, 2012
    Posts:
    111
    Same here in forward rendering mode if the realtime light is a directional like j.baeza described.
    Deferred works like expected.
    Changing the realtime light to a spotlight seems to be a workaround, too.

    Both screenshots with forward rendering, simply switching the light type:
    (Similar outcome with realtime GI, but blown out, because the shadows aren't respected.)

    forward_lightmap_and_directional.jpg forward_lightmap_and_spot.jpg
     
    Last edited: May 18, 2015
  3. j-baeza

    j-baeza

    Joined:
    May 14, 2015
    Posts:
    26
    Thanx Findus for your reply ! Yes i did not precise that in deffered everything was ok ;) Thanks for the screens :)
     
  4. j-baeza

    j-baeza

    Joined:
    May 14, 2015
    Posts:
    26
    Other bug ? In irrandiance view there are some "borders" in the irrandiance levels....
    01.jpg
     
  5. j-baeza

    j-baeza

    Joined:
    May 14, 2015
    Posts:
    26
    Do you know why the realtime irrandiance is brighter than the baked one (when computing is over) ?
    The realtime irrandiance (while computing) is clean, bright, quite perfect for me and when the baking is over, it suddenly turns dark, compressed and blutchy....
    01.jpg
     
    Last edited: May 22, 2015
    minhdaubu2 likes this.
  6. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    One more great catch Mr Findus! Reported it and assigned to devs
     
  7. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    Can I get repro for that?
     
  8. minhdaubu2

    minhdaubu2

    Joined:
    Jun 10, 2014
    Posts:
    75
    Your lightmaps are good. Are you provide lightmap UV for your scene or just let unity creates it? :D
     
  9. Findus

    Findus

    Joined:
    Jun 23, 2012
    Posts:
    111
    Thanks, and thanks a lot for passing it on! To be fair, though, it was j.baeza who found it first.
     
  10. j-baeza

    j-baeza

    Joined:
    May 14, 2015
    Posts:
    26
    I make my own UVs :)
     
    minhdaubu2 likes this.
  11. minhdaubu2

    minhdaubu2

    Joined:
    Jun 10, 2014
    Posts:
    75
    Please teach me how to get custom lightmap UV work in Unity :D