Search Unity

Real-Time Global Illumination causing Black Splotches/Artifacts

Discussion in 'Global Illumination' started by BHS, May 28, 2015.

  1. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,764
    Hey there,

    I seem to be having a random issue that came out of nowhere.

    I get black splotchy artifacts when using ream-time GI. I haven't baked anything in this entire project, but it seems like it's overlaying some sort of lightmap.

    GI Issue.png

    I noticed that when I adjusted the real-time resolution to a lower setting (a value of 1), it seemed to fix it. However, it will randomly return after testing it a few times.

    I have tried disabling shadows, using spherical directional lighting, swapping textures, restarting Unity, and pretty much anything I can think of.

    I also notice major inconsistencies when using GI. Sometimes everything blends nicely and other times the same areas and materials look like different shades.

    I'm using Unity 5.0.0f4 Personal with Windows 8.1

    I will sometimes receive these errors when the issue happens.

    Failed opening GI file: 'fd/fd8ef35f8211c99c40f9211c7842a88b.ppg'.
    Failed opening GI file: 'be/be32480e4ec0ba019f7f3b463be02cfe.ppg'.
    Failed opening GI file: 'c1/c1bffbc0b2fcf0aba9a39f863cda19b5.ppg'.
    Failed opening GI file: '0e/0eebd614871092088266ffba81a0c536.ppg'.
    Failed opening GI file: '6a/6a98dbc4e13855d062302c9564fcb152.ppg'.
    Failed opening GI file: '1f/1fbe779c934b27d83e5fb578c2b5af3b.ppg'.
    Failed opening GI file: 'd8/d80d80da71e44bc087cc7a1844be63b7.ppg'.
    Failed opening GI file: '70/70cc28581ca6f8a8420bd9ddde284820.ppg'.
    terrainInstanceHashes.find (instances.instanceID) != terrainInstanceHashes.end ()
     
  2. ecarter

    ecarter

    Joined:
    Jan 3, 2013
    Posts:
    21
    Update you unity to the last version,
    Unity 5.0.2
    13 May, 2015
     
  3. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,764
    Thanks.

    I just finished updating and I let it recompute. I'm still having issues and I receive this error. Any official word on this? We're on a tight schedule.

    si.atlasOffsetX > systemInfo.atlasOffsetX || si.atlasOffsetY > systemInfo.atlasOffsetY

    I restarted Unity and I receive this error when it starts:

    Failed opening GI file: '8f/8f8188db4ca0bb4c179539d86058befd.ppg'.
    terrainInstanceHashes.find (instances.instanceID) != terrainInstanceHashes.end ()
     
  4. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Clear the GI cache and rebuild, should fix the issue.
     
  5. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,764
    Thanks for this, but I tried it and the problem persists.
     
  6. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,764
  7. BHS

    BHS

    Joined:
    Dec 21, 2009
    Posts:
    4,764
    Update:

    I now receive these errors after I get a bake without crashing. I still have the splotchy issue, but I turned the resolution way down and set the type to non-directional.

    Failed writing to: 'AppData/LocalLow/Unity/Caches/GiCache/ff/ffdd6f18d8de010213543463e7f7ae40._comp_light.exr.tmp'.
    'Compositing' job failed with error code: 6 ('Failed writing or importing the composited texture file.').
     
    Last edited: Jul 1, 2016
  8. SpiriTx

    SpiriTx

    Graphics QA

    Joined:
    Apr 12, 2012
    Posts:
    252
    Could you please report a bug with your scene?
    We had a similar bug, but it was fixed in 5.0.0f3
     
    minhdaubu2 likes this.