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

Unit 5 Unable to Bake Shadows - Terrain

Discussion in 'Global Illumination' started by BugRunner, Apr 16, 2015.

  1. BugRunner

    BugRunner

    Joined:
    Jun 18, 2013
    Posts:
    3
    I just made the upgrade to Unity 5 Free and I seem to have run into a bug.

    I have been working on a video game with the previous version of Unity, and have updated to the current version. My game level has a small terrain that has custom trees placed via the terrain editor. When lighting, my real-time shadows function fine, but when baking I have run into a major problem. I have not been able to bake down any shadows onto a lightmap atlas. When the light parameters are switched to "Baked" after lightmapping, they produce a game level void of shadows. This has lead me to believe that Unity 5 cannot bake shadows onto a terrain with placed trees. With older versions of Unity, this was no problem. I have been at this a whole day, testing static settings, prefabs and so on an nothing worked. Is there a fix for this problem?
     
  2. Ben-BearFish

    Ben-BearFish

    Joined:
    Sep 6, 2011
    Posts:
    1,204
    I seem to be having this same issue with shadows on a cube (my level's floor). This might be a bug in general with the baked lightmaps. Not sure if anyone can confirm it's a bug.
     
  3. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    There is a known bug with terrains and trees: case 685764: Terrain trees do not cast shadows into baked lightmaps
     
  4. Ben-BearFish

    Ben-BearFish

    Joined:
    Sep 6, 2011
    Posts:
    1,204
    @KEngelstoft , I'm having this issue when I bake a lightmap with shadows with small cubes on a larger cube surface, not a terrain surface. Is this a know bug as well?
     
  5. BugRunner

    BugRunner

    Joined:
    Jun 18, 2013
    Posts:
    3
    Will the fix to the bug be available in the next update?
     
  6. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    That sounds like a different issue.
     
  7. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    No, we don't have a fix yet.
     
  8. BugRunner

    BugRunner

    Joined:
    Jun 18, 2013
    Posts:
    3
    Does this bug adress all types of baking (AO - Shadows)?
     
  9. angeliapayne

    angeliapayne

    Joined:
    Jul 13, 2012
    Posts:
    30
    Bump. Is Unity planning on allowing tree shadows to be baked on the terrain in ANY future releases?
     
  10. angeliapayne

    angeliapayne

    Joined:
    Jul 13, 2012
    Posts:
    30
    I can no longer find this in the Issue Tracker. Has this problem been fixed?
     
    CloudyVR likes this.