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 Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug ssao renders on top of Fp renderobjects in 2021.2

Discussion in 'Universal Render Pipeline' started by Mister-D, Oct 26, 2021.

  1. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    screenspace AO renders on top of my first person renderobjects in 2021.2 URP

    it worked fine in 2021.1

    screen.jpg
     
    hkalterkait likes this.
  2. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    decals also get applied above the render objects.
     

    Attached Files:

  3. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    968
    did you make a bug report from the client?
     
  4. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    no
     
  5. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    my project is way too large to upload for a bug report.
    im using the same setup as the "URP FPS example" and im using autodesk interactive materials
     
  6. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,357
  7. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
  8. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    164
    It’s a long time problem: SSAO is broken if you use render features or stencils.
     
  9. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    yeah really annoying
     
  10. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    this still isnt fixed in 2021.2.2f1
     
  11. hkalterkait

    hkalterkait

    Joined:
    Jul 20, 2016
    Posts:
    9
    Hi, I am encountering the same issue. Enabling SSAO renders the AO effect on top of my RenderObjects which have their Event set to "BeforeRenderingPostProcessing". The problem happens whenever I set the Event to something after the "BeforeRenderingOpaques" Event on the RenderObject. I am guessing that is because the SSAO render pass event is set to "BeforeRenderingOpeques".

    I am using Unity 2021.1.18f1 / Universal Render Pipeline Version 11.0.
    Is this a bug I should report or is this intended?
    If anyone knows if this problem is fixed in later versions or any work around kindly let us know here.

    Thanks Unity team and everyone
    Best Regards
     
    Last edited: Dec 28, 2021
  12. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    unity adds render features to urp and then decides to completely break it with new versions. it sucks, last time ive checked its still broken in the latest version.
     
  13. hkalterkait

    hkalterkait

    Joined:
    Jul 20, 2016
    Posts:
    9
    I think RenderObjects Feature is still experimental (that is what is shown in my editor) and they are improving it.
    Anyways, I downloaded Unity 2021.2.7f1 with URP version 12 to check what has improved and if you check the SSAO feature their is now an option you can enable to Render SSAO AfterRenderingOpeques. Their is still some issues though so I would advise making a copy of your project before upgrading. Hopefully this will help you!