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

Precomputed GI and GI cache sharing

Discussion in 'Global Illumination' started by lukas-chrapek, Mar 30, 2016.

  1. lukas-chrapek

    lukas-chrapek

    Joined:
    Sep 13, 2015
    Posts:
    31
    Hi all

    I want to hear your opinion about GI cache and sharing it with SVN or other SVN like system.
    Because computing GI every time when is some change in level is little bit time consuming, also when every single member of team must to do it.
    Some ideas or experience with sharing GI cache?

    Thanks for answers and ideas.
     
  2. tryptic

    tryptic

    Joined:
    Nov 13, 2012
    Posts:
    55
    In theory, once you complete a manual pre-comp GI bake, the LightingData.asset that is written to a subfolder of the scene file should contain all the necessary lighting data (editor only). However in practice, we've had inconsistent or just wrong results when checking that file into the depot, getting it on a different system, then loading the scene. I've not yet figured out exactly why this is.
     
  3. qq83833224

    qq83833224

    Joined:
    Jan 15, 2015
    Posts:
    4
    My team meet the same problem. it seems @tryptic hasn't got the issue
     
  4. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Hi! As mentioned it should be sufficient to version the Lighting Data Asset. Did anyone of you file a bug report on inconsistent behavior?
    I wouldn't recommend versioning the GI Cache but you should be able to prime the cache of one machine with cache files from another one. For our LAN distributed build prototype we shared the GI Cache files over the network.
     
  5. robin911

    robin911

    Joined:
    Nov 21, 2016
    Posts:
    6
    My team meet the same problem. We worked on Unity5.4.2f2 and the GI looks different. I tried to copy the scene file, the lighting data files and gi cache files to another folder and copy them back one by one. But I can't get the same GI result.

    Any thoughts for it will be helpful.