Search Unity

Post-processing vignette and HMD field-of-view

Discussion in 'AR/VR (XR) Discussion' started by felt9099, Nov 13, 2019.

  1. felt9099

    felt9099

    Joined:
    Feb 1, 2018
    Posts:
    36
    Hello all,

    I'm using the vignette post processing for an environment displayed in a HTC Vive Pro HMD. In the editor, the vignette is a 0 to 1 "strength" setting, where 1 is the most restricted field of view.

    Is there a way to determine how much of the field of view is shown at a given vignette setting (e.g., 0 Vignette = 110˚, .25 Vignette = 80˚, 1.0 Vignette = 50˚)?

    Thanks!
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Go check the source code in the Post-proccessing stack v2 folder (if that's what you are using) and see how it's implemented. Then you probably can figure out a way how to calculate some angle that's at least approximately correct.