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.

Bug Ambient Occlusion makes a transparent hole in my image (or shows weird artifacts)

Discussion in 'Image Effects' started by Romaleks360, Oct 17, 2022.

  1. Romaleks360

    Romaleks360

    Joined:
    Sep 9, 2017
    Posts:
    65
    I am trying to render a simple image on a transparent background using:
    • Unity 2021.3.4f1
    • built-in render pipeline
    • post processing v2 package
    However, AO seems broken:
    • Scalable Ambient Obscurance always cuts a hole in the image
    • Multi Scale Volumetric Obscurance gives some weird artifacts
    I am rendering to R32G32B32A32_SFLOAT Render Texture via Recorder. All other post-processing effects are disabled.

    upload_2022-10-17_12-6-46.png
     
    Last edited: Oct 17, 2022
  2. GoGoGadget

    GoGoGadget

    Joined:
    Sep 23, 2013
    Posts:
    853
    What happens if you disable recorder? I'd expect the SAO to work in that case at least. For MSVO, at a guess, try changing your camera clipping plane values around a bit.
     
  3. Romaleks360

    Romaleks360

    Joined:
    Sep 9, 2017
    Posts:
    65
    Thanks for the reply!
    SAO works fine in-game, at least while you don't use your render target alpha channel. But I am not making a game, I just want to render this image on a transparent BG
    Never thought about the clipping planes thing! Didn't know this can be related. Changing values had some effect on the artifacts, they were jiggling and moving. However, this didn't fix the issue, as the artifacts are always present.