-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex_camera_passthrough.toml
61 lines (50 loc) · 2.28 KB
/
index_camera_passthrough.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
## This is the configuration file for index_camera_passthrough.
## This file should live at ~/.config/index_camera_passthrough.toml
## camera device to use. auto detect if not set
camera_device = ""
## to open and close the overlay, you need to press two buttons on your
## controller at the same time. which buttons are used can be configured
## in SteamVR controller bindings
## how long does the button need to be held before the overlay open,
## closing the overlay is always instantaneous
open_delay = "0s"
## z order of the overlay. higher z order means the overlay is on top of
## other overlays. Not supported on all backends, supported on OpenXR.
z_order = 4294967295
[overlay.position]
## how will the overlay be positioned.
## possible values:
## - "Hmd": stay in front of your Hmd
## - "Absolute": fixed place in VR space
## - "Sticky": like "Absolute" but the overlay is repositionable
mode = "Hmd"
## how far away should the overlay be placed
## only meaningful if mode is "Hmd" or "Sticky"
distance = 1.0
## transformation matrix for absolute position, column-major
## only meaningful if mode is "Absolute"
# transform = [ [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1] ]
[display_mode]
## the display mode.
## possible values:
## - "Stereo": show a 3D image, how much you can see is limited by how
## big the overlay is in your field of view.
## - "Flat": show a flat image
mode = "Flat"
## which camera's image to display in Flat mode
## only meaningful if mode is "Flat"
eye = "Left"
## Because your eyes and the cameras are at different physical locations, it is impossible
## to project camera view into VR space perfectly. There are trade offs approximating
## this projection.
##
## possible values:
## (a smaller viewing range here means things too close to you will give you double vision).
##
## - "FromCamera": in this mode, we assume your eyes are at the cameras' physical location. this mode
## has larger viewing range, but everything will look smaller to you.
## - "FromEye": in this mode, we assume your cameras are at your eyes' physical location. everything will
## have the right scale in this mode, but the viewing range is smaller.
##
## only available if mode is "Stereo"
# projection_mode = "FromCamera"