cgv
Loading...
Searching...
No Matches
config.def
1// the vr_emulator plugin can emulate several vr_kits at the same time
2// vr_kit specific configurations are set on a current vr kit
3
4
5// set whether vr_emulator driver is installed (defaults to true)
6type(vr_emulator):installed=true
7
8
9/******** vr kit selection and creation ****************/
10
11// select current vr kit by index. If kit not exists, create it
12type(vr_emulator):current_kit_index=0
13
14
15/******** vr kit creation parameters ****************/
16
17// initial body direction as rotation angle inside the x-z-plane in radians with 0.0 corresponding to z-axis
18type(vr_emulator):create_body_direction=0.0
19// initial 3d body ground position as 3d vector
20type(vr_emulator):create_body_position='2.0 0 -1'
21// number of trackers in range [0,4] activated at creation
22type(vr_emulator):create_nr_trackers=2
23// body height in meters
24type(vr_emulator):body_height=1.90
25// resolution of virtual eye display of single eye of to be created vr kit
26type(vr_emulator):screen_width=640
27type(vr_emulator):screen_height=480
28// set whether to be created vr kit is wireless
29type(vr_emulator):wireless=true
30// set whether to be created vr kit has force feedback support
31type(vr_emulator):ffb_support=false
32
33
34/******** configuration of current vr kit ****************/
35
36// current body direction as rotation angle inside the x-z-plane in radians with 0.0 corresponding to z-axis
37type(vr_emulator):body_direction=0.0
38// body height
39type(vr_emulator):body_height=1.80
40// current hip bending parameter in range [-1,1] with -1 ... bend down, 1 ... bend up
41type(vr_emulator):hip_parameter", kit_ptr->hip_parameter) &&
42// current head yaw parameter in range [-1,1] with -1 ... look left, 1 ... look right
43type(vr_emulator):yaw_parameter"=0
44// field of view in y direction in degrees
45type(vr_emulator):fovy=90
46// current 3d body ground position
47type(vr_emulator):body_position='0 0 0'
48// current position of left hand relativ arm length with origin in left shoulder
49// (y in up direction, x to the right and z in backward direction)
50type(vr_emulator):left_hand_position='0 -0.5 -0.2'
51// current position of right hand relativ arm length with origin in right shoulder
52type(vr_emulator):right_hand_position='0 -0.5 -0.2'
53// left hand orientation as quaternion with scalar part in w component
54type(vr_emulator):left_hand_orientation='0 0 0 1'
55// right hand orientation as quaternion with scalar part in w component
56type(vr_emulator):right_hand_orientation='0 0 0 1'
57
58/******** configuration of trackers ****************/
59
60// whether tracker 1 is enabled
61type(vr_emulator):tracker_1_enabled=false
62// whether tracker 2 is enabled
63type(vr_emulator):tracker_2_enabled=false
64// whether tracker 3 is enabled
65type(vr_emulator):tracker_3_enabled=false
66// whether tracker 4 is enabled
67type(vr_emulator):tracker_4_enabled=false
68
69// coordinate system to which tracker 1 is attached (0 ... world, 1 ... hmd, 2 ... left hand, 3 ... right hand)
70type(vr_emulator):tracker_1_attachment=1
71// coordinate system to which tracker 2 is attached (0 ... world, 1 ... hmd, 2 ... left hand, 3 ... right hand)
72type(vr_emulator):tracker_2_attachment=2
73// coordinate system to which tracker 3 is attached (0 ... world, 1 ... hmd, 2 ... left hand, 3 ... right hand)
74type(vr_emulator):tracker_2_attachment=3
75// coordinate system to which tracker 4 is attached (0 ... world, 1 ... hmd, 2 ... left hand, 3 ... right hand)
76type(vr_emulator):tracker_3_attachment=0
77// tracker 1 position in world coordinates in meters
78type(vr_emulator):tracker_1_position='0 0 0'
79// tracker 2 position in world coordinates in meters
80type(vr_emulator):tracker_2_position='1 0 0 '
81// tracker 3 position in world coordinates in meters
82type(vr_emulator):tracker_3_position='0.5 0 0'
83// tracker 4 position in world coordinates in meters
84type(vr_emulator):tracker_4_position='1.5 0 0 '
85// orientation of tracker 1 as quaternion
86type(vr_emulator):tracker_1_orientation='0 0 0 1'
87// orientation of tracker 2 as quaternion
88type(vr_emulator):tracker_2_orientation='0 0 0 1'
89// orientation of tracker 3 as quaternion
90type(vr_emulator):tracker_3_orientation='0 0 0 1'
91// orientation of tracker 4 as quaternion
92type(vr_emulator):tracker_4_orientation='0 0 0 1'