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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Vignette effect issue in VR

Discussion in 'VR' started by TeamCroco, Aug 12, 2021.

  1. TeamCroco

    TeamCroco

    Joined:
    Nov 8, 2018
    Posts:
    3
    Hello,

    we recently used the vignette effect from URP in our VR project, and we noticed a visual issue in the headset when the effect is active.
    The effect I'm referring to is the following one, being in the URP version we are using (7.5.3) :
    https://docs.unity3d.com/Packages/c...rsal@7.5/manual/post-processing-vignette.html

    Taken from our project, here is a frame of the effect in action (with an additional color grading post effect applied at the same time), before being sent to the headset (we are running VR rendering in single pass mode) :

    urp.png
    The effect is applied on both eyes, but the result is not quite what we were expecting, because the vignette effect is applied exactly the same way on both eyes. The result in the headset is a disturbing effect in terms of stereoscopic view, as if the vignette effect is not taking the space between the eyes correctly.

    Having checked what Oculus do in their SDK, the "OVRVignette" they implemented does produce a result which seems correct in terms of stereoscopic view.

    Anybody noticed a similar issue ? Are we missing something here with the configuration of the vignette effect in URP?

    Thanks
     
  2. poffdeluxe

    poffdeluxe

    Joined:
    Apr 10, 2021
    Posts:
    2
    I'm also experiencing this issue.

    I'm using:
    1. URP 10.5.0
    2. Single pass instanced render mode for XR
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,457
    Try the Tunneling Pro asset. It's made for VR and should get the job done
     
  4. unitydreamer29

    unitydreamer29

    Joined:
    Dec 27, 2020
    Posts:
    47
    Which headset are you using? We noticed that Vignette renders in both eyes like you showed above on the Quest 2, but works properly on the Rift S.

    We're using built in render pipeline with multi-pass though.
     
  5. poffdeluxe

    poffdeluxe

    Joined:
    Apr 10, 2021
    Posts:
    2
    DevDunk likes this.
  6. TeamCroco

    TeamCroco

    Joined:
    Nov 8, 2018
    Posts:
    3
    Hello, and thanks for all the replies.
    I'm happy to see that the bug has been opened in the issue tracker, and will vote for it.
    Meanwhile, thanks for pointing the Tunneling Pro asset, which happens to be free. This may be a better approach than importing the OVRVignette from the Oculus SDK.

    I will let you know how things turn out on this subject.

    Thanks,
     
  7. Ishnubarak

    Ishnubarak

    Joined:
    Aug 28, 2019
    Posts:
    6
    As far as I can tell, Tunnelling Pro does not work for URP, unfortunately