Search Unity

Custom Pass Volume Rendered Twice

Discussion in 'AR/VR (XR) Discussion' started by aitor_g, Aug 27, 2020.

  1. aitor_g

    aitor_g

    Joined:
    Feb 20, 2019
    Posts:
    8
    Hi,

    I am working on a VR Project using the HDRP. Recently I had to implement an outline for the grabbable objects.

    I found this resource online https://github.com/alelievr/HDRP-Custom-Passes. I exported the CustomPassVolume from the Outline effect scene and the SelectionColor.cs script as a package.
    I imported those into my VR Project and set up the objects that will have an outline in the appropriate layer.
    The object has an outline when colliding with the hand, before actually grabbing it.

    The problem is, inside the VR Set (Oculus Quest) is see a double outline. The left eye camera renders the outline properly but in the right eye I see the outline displaced to the right of the actual object.

    upload_2020-8-27_10-32-27.png

    Of course if I set the Monoscopic variable in my OVR Manager script, there is only one camera inside the HMD view, but that's not an option

    I am not very experienced with Unity's shader programs or the HDRP in general so I am lost here. Any guidance is welcomed.
     
    Last edited: Aug 27, 2020
  2. antoinel_unity

    antoinel_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    179
  3. aitor_g

    aitor_g

    Joined:
    Feb 20, 2019
    Posts:
    8
    Hi @antoinel_unity ,

    Thank you for your prompt reply. Much appreciated!

    Best regards.
     
    antoinel_unity likes this.
unityunity