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. Dismiss Notice

Question HDRP Alpha output problem

Discussion in 'High Definition Render Pipeline' started by monty_python, Aug 12, 2020.

  1. monty_python

    monty_python

    Joined:
    Mar 4, 2017
    Posts:
    18
    Hi,
    I am having problems with alpha when using Unity 2020.1.1f1 + HDRP. I have configured both my Color Buffer Format and Post-processing Buffer Format to use R16G16B16A16 based on this page:
    https://docs.unity3d.com/Packages/c....high-definition@7.2/manual/Alpha-Output.html

    However it doesn't seem to produce correct result. Setting output to Target texture produces following alpha channel (HDRP 8.2.0):
    8-2-0.gif
    It seems like alpha it is not being post-processed (judging based on flickering edges produced most probably by lack of TAA post-processing) and also it contains some incorrect color information rather than actual alpha.

    I have tested also HDRP 9.0.0 preview 33 and it similarly outputs non post-processed alpha (even though this time it is at least proper alpha information).
    9-0-0-preview33.gif
    Please does anyone have a clue what am I doing wrong? I think this might be some kind of bug with alpha channel output, but I am not sure. I am using just a default scene that opens with new HDRP project. In order to output alpha I have set Camera Background Type to Color (0,0,0,0). Thanks.
     
    Last edited: Aug 12, 2020
  2. unity_-Ki_viE1vxNTlA

    unity_-Ki_viE1vxNTlA

    Joined:
    Dec 29, 2018
    Posts:
    1
    Turnoff the Stop Nans in camera below temporal Anti-aliasing settings.
     
  3. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    932
    monty_python likes this.
  4. eliashodel

    eliashodel

    Joined:
    Jan 25, 2019
    Posts:
    18
    There seems to be a similar issue with the motion blur post processing effect. when ever i turn on motion blur the alpha channel becomes a greyscale version of the image.

    no motion blur:
    Screenshot_20201001_162826.png


    with motion blur: Screenshot_20201001_162837.png
     
  5. monty_python

    monty_python

    Joined:
    Mar 4, 2017
    Posts:
    18
    Hi,
    I am experiencing some alpha related issues when using Temporal anti-aliasing. All issues mentioned above seem to be solved, but I can't get rid of new "ghosting" effect caused by TAA. Problem could be easily reproduced with moving camera and couple of objects in the scene (behaves the same in both 2021.2.7f1 and 2022.1.0b2).
    Please is there a way to use TAA without such ghosting? Thanks.

    alpha.gif
    alpha.jpeg
     
    Last edited: Jan 2, 2022