Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
blender
monado
Commits
a87e6e66
Commit
a87e6e66
authored
Mar 14, 2019
by
Lubosz Sarnecki
Browse files
oh: Initialize VIVE distortion parameters with default values from my VIVE.
parent
cdfe8b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/drivers/ohmd/oh_device.c
View file @
a87e6e66
...
...
@@ -334,6 +334,50 @@ oh_device_create(ohmd_context *ctx,
if
(
quirk_video_distortion_vive
)
{
ohd
->
base
.
distortion
.
models
|=
XRT_DISTORTION_MODEL_VIVE
;
ohd
->
base
.
distortion
.
preferred
=
XRT_DISTORTION_MODEL_VIVE
;
// clang-format off
// These need to be aquired from the vive config
ohd
->
base
.
distortion
.
vive
.
aspect_x_over_y
=
0
.
8999999761581421
f
;
ohd
->
base
.
distortion
.
vive
.
grow_for_undistort
=
0
.
6000000238418579
f
;
ohd
->
base
.
distortion
.
vive
.
undistort_r2_cutoff
[
0
]
=
1
.
11622154712677
f
;
ohd
->
base
.
distortion
.
vive
.
undistort_r2_cutoff
[
1
]
=
1
.
101870775222778
f
;
ohd
->
base
.
distortion
.
vive
.
center
[
0
][
0
]
=
0
.
08946027017045266
f
;
ohd
->
base
.
distortion
.
vive
.
center
[
0
][
1
]
=
-
0
.
00
9002181016260827
f
;
ohd
->
base
.
distortion
.
vive
.
center
[
1
][
0
]
=
-
0
.
08933516629552526
f
;
ohd
->
base
.
distortion
.
vive
.
center
[
1
][
1
]
=
-
0
.
0060145652
87238661
f
;
// left
// green
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
0
][
0
]
=
-
0
.
188236068524731
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
0
][
1
]
=
-
0
.
221086205321053
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
0
][
2
]
=
-
0
.
2537849057915209
f
;
// blue
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
1
][
0
]
=
-
0
.
073165
90815739493
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
1
][
1
]
=
-
0
.
023324007
89561968
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
1
][
2
]
=
0
.
0246
9959434698275
f
;
// red
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
2
][
0
]
=
-
0
.
02223
805567703767
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
2
][
1
]
=
-
0
.
04
931309279533211
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
0
][
2
][
2
]
=
-
0
.
07
862881939243466
f
;
// right
// green
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
0
][
0
]
=
-
0
.
1906209981894497
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
0
][
1
]
=
-
0
.
2248896677207884
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
0
][
2
]
=
-
0
.
2721364516782803
f
;
// blue
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
1
][
0
]
=
-
0
.
07346071
902951497
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
1
][
1
]
=
-
0
.
021
89527566250131
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
1
][
2
]
=
0
.
05
81378652359256
f
;
// red
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
2
][
0
]
=
-
0
.
01755
850332081247
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
2
][
1
]
=
-
0
.
0451724563337341
9
f
;
ohd
->
base
.
distortion
.
vive
.
coefficients
[
1
][
2
][
2
]
=
-
0
.
0928909347763
f
;
// clang-format on
}
if
(
quirk_video_distortion_none
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment