The open source OpenXR runtime

d/vive_config: correct fov calculation for vive pro

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2451>

authored by

uvos and committed by
Marge Bot
92ddddbc 6d04e12b

+6 -2
+6 -2
src/xrt/auxiliary/vive/vive_config.c
··· 351 351 h_meters = 0.07; 352 352 // eye relief knob adjusts this around [0.0255(near)-0.275(far)] 353 353 eye_to_screen_distance = 0.0255; 354 - } 355 - if (d->variant == VIVE_VARIANT_PRO2) { 354 + } else if (d->variant == VIVE_VARIANT_PRO) { 355 + lens_horizontal_separation = 0.055; 356 + eye_to_screen_distance = 0.02544; 357 + h_meters = 0.066755; 358 + w_meters = 0.120000 / 2.0; 359 + } else if (d->variant == VIVE_VARIANT_PRO2) { 356 360 lens_horizontal_separation = 0.055; 357 361 h_meters = 0.07; 358 362 // eye relief knob adjusts this around [0.0255(near)-0.275(far)]