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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug Ambient Occlusion bug, mixing scene/game views HDRP

Discussion in 'High Definition Render Pipeline' started by YOSSI2010, Feb 6, 2021.

?

Have you had this AO mixing bug as well?

  1. Yes

    4 vote(s)
    66.7%
  2. No

    1 vote(s)
    16.7%
  3. Had it before

    1 vote(s)
    16.7%
  1. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    upload_2021-2-6_19-53-27.png
    I have this problem where AO is mixed between scene view and game view, it's been like that for the last few Unity versions.
    I've tried updating drivers, It didn't do anything.
    Any solutions?
    When having only scene view it is fine but on the game view it is still bad if I have more than 1 camera active.
    all cameras seem to have their AO mixed.

    HDRP 10.2.2
    Unity versions 2020.1 to 2020.2.2f
     
  2. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    upload_2021-2-20_19-22-42.png
    2020.2.5f1 it still happens
    What could cause this?
    it doesn't happen on my laptop.
     
  3. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,538
    HDRP doesnt support more than 1 camera, or camera stacking...
     
  4. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    Never had problems with it before...
    I do split screen multiplayer and it worked fine 2 months ago.

    Besides... not supporting 2 cameras and mixing the post processing up between the scene view and the game view are two different things.

    I also have the Depth of Field effect being whacky and with tons of black artifacts.

    So it's definitely something stupid that got F***ed up.
     
  5. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    I have tried clearing ALL the caches of Unity including the project and packages(and appdata)
    upload_2021-2-21_21-26-21.png
    it still happens
     
  6. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    563
    I tried quickly but couldn't managed to repro the probleme on my side on this engine/hdrp version.
    Could you post a small repro of your project or report the issue via the Help > Report a bug menu please ?
     
  7. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    Thank you for the response,
    Thank you very much for your response.

    I've created a new HDRP project and I do not have the problem there.

    I'll create a small project derived from mine and send you a git repo.

    Now, after clearing all the caches, I also have a new problem with the package manager going into a "resolving packages" prompt loop whenever I enter the project settings window.

    Thank you again.
     
  8. slime73

    slime73

    Joined:
    May 14, 2017
    Posts:
    103
  9. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    I'm sure it's something similar, buffers getting mixed up between cameras.
    It's not the first frame in my case, it's dynamic.
    Doesn't explain why it doesn't happen on my low end laptop and also doesn't happen on a new project.
    I'll try and mess with the half resolution\temporal filter to see if it is the culprit.
    Thank you for sharing.
     
  10. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    20
    I have confirmed it that using Full Resolution "Off" (half resolution) and Temporal "Off" at the same time makes this bug.
    Not sure it it is the same bug since in his case temporal is On while on my case it happens when it's Off and it's not for 1 frame and doesn't require you to press play at all..
    It even does the bug on a new HDRP project when you force disable temporal.
    @chap-unity I will not add an example project since anyone can click new project and do the thing.

    I hope this git PR fixed it for that case as well.

    Thank you all!
    Especially @slime73 that helped me pinpoint that it's known that there are problems with the buffers.
     
  11. Deleted User

    Deleted User

    Guest

    Yes this does happen in URP as well!!! Any fix for the issue?
     
  12. Jose-Abalos

    Jose-Abalos

    Joined:
    Jan 31, 2014
    Posts:
    2
    I've seen this happen with the Render Scale of the URP asset, which was 2 in my case. Setting it to 1 fixed the issue.
     
  13. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    467
    In the earlier version of 2020 this was due to the scene view and game view being side by side in editor.

    If this is the case it will likely be ignored for builds and network.
     
  14. Jar_Coding

    Jar_Coding

    Joined:
    Oct 5, 2017
    Posts:
    16
    I can confirm the bug is still there in URP 2021.2.7f1. Render Scale is 1, and unfortunately still buggy.

    On my side the bug was caused by using multiple renderers. If I only use one the bug is gone.
    But would be cool to use a different renderer for example for the ui camera to support different post processing for the ui this way (or is this a bad idea?^^)
     
    Last edited: Jan 7, 2022
  15. avnphong3bao8

    avnphong3bao8

    Joined:
    Feb 5, 2019
    Posts:
    4
    this bug is annoying me on 2020.3.28f1