Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bad AO Banding

Discussion in 'Image Effects' started by mrtenda, Jul 9, 2021.

  1. mrtenda

    mrtenda

    Joined:
    Jun 6, 2017
    Posts:
    73
    I'm seeing lots of banding at certain camera angles with Postprocessing v2's Ambient Occlusion effect. Is there any way to get rid of it?

    Some examples below. It might seem not so bad in a screenshot, but when the game's in motion the banding flickers horribly as the camera moves, and it's really distracting.

    Example with AO enabled:

    Starstruck-Screenshot-637614474312434615.png

    Example with AO disabled (the banding disappears):

    Starstruck-Screenshot-637614475945246013.png

    My AO settings:
    upload_2021-7-9_17-17-1.png
     
  2. mrtenda

    mrtenda

    Joined:
    Jun 6, 2017
    Posts:
    73
    Still experiencing this in 2020.3. Can anyone help me?
     
  3. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    437
    perhaps check the texture compression
     
  4. mrtenda

    mrtenda

    Joined:
    Jun 6, 2017
    Posts:
    73
    Tried changing it to "High Quality", but I didn't see any difference.
     
  5. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    437
  6. mrtenda

    mrtenda

    Joined:
    Jun 6, 2017
    Posts:
    73
    It's not caused by the texture, since it's happening even with the "Default-Diffuse" material, as shown in the screenshow below. In fact, it even happens on the default Unity cube.

    Still looking for a solution to this. This is beginning to cause serious problems in our game.

    Using the latest 2020 LTS and the latest Postprocessing package (3.2.0).

    upload_2022-2-18_3-17-31.png
     
  7. mrtenda

    mrtenda

    Joined:
    Jun 6, 2017
    Posts:
    73
    Last edited: Feb 18, 2022
    KarlKarl2000 likes this.
  8. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    606
    I'm running into the same issue.. surprised its not discussed more here.
    As of Unity 2021.3.15 -- still has color banding issues.
     
    GDevTeam likes this.
  9. mrtenda

    mrtenda

    Joined:
    Jun 6, 2017
    Posts:
    73
    An update on this bug:

    I found a pending pull request on GitHub that seems to be a fix for this bug: https://github.com/Unity-Technologies/Graphics/pull/7489#event-7923717542

    I asked Unity to approve the code and they did. So the fix seems to have been added to Unity's main codebase, but as far as I can tell, the fix has not been deployed to Package Manager, so I have been unable to try it out yet.
     
    GDevTeam likes this.