-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_schema.json
119 lines (118 loc) · 3.82 KB
/
user_schema.json
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"eyeData": {
"type": "object",
"properties": {
"pupilDistance": {
"description": "Distance from bridge of nose to pupil when infinity-focused (in mm).",
"type": "number"
},
"dominant": {
"type": "boolean"
},
"correction": {
"title": "Vision correction information",
"description": "These optional parameters, found on an eyeglass prescription, may be used to help provide a customized display experience.",
"type": "object",
"properties": {
"distance": {
"description": "Distance vision correction (DV)",
"type": "object",
"properties": {
"spherical": {
"title": "Spherical correction (diopters)",
"description": "This is the most common correction value or 'power'",
"type": "number",
"default": 0
},
"cylindrical": {
"title": "Astigmatism - cylindical correction (diopters)",
"description": "This is the astigmatism value measured in positive or negative diopters",
"type": "number",
"default": 0
},
"axis": {
"title": "Astigmatism - axis (degrees)",
"description": "This is the astigmatism value measured as an angle",
"type": "number"
}
},
"dependencies": {
"cylindrical": "axis",
"axis": "cylindrical"
}
},
"addNear": {
"description": "Near vision correction (NV) - 'add'",
"type": "object",
"properties": {
"spherical": {
"title": "Spherical correction (diopters)",
"type": "number",
"default": 0
}
}
}
}
}
}
}
},
"type": "object",
"properties": {
"personalSettings": {
"title": "OSVR User Descriptor",
"description": "This schema documents the user parameters available for optimizing and customizing system behaviors.",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"gender": {
"description": "If specified, may be used to provide defaults for some anthropometric data.",
"type": "string"
},
"eyes": {
"description": "IPD and dominant eye designations. Total IPD can be derived by adding together the pdLeft and pdRight valuse.",
"type": "object",
"properties": {
"left": {
"allOf": [{
"title": "Left eye (OS)"
}, {
"$ref": "#/definitions/eyeData"
}]
},
"right": {
"allOf": [{
"title": "Right eye (OD)"
}, {
"$ref": "#/definitions/eyeData"
}]
}
}
},
"anthropometric": {
"description": "General distance measures to improve immersion.",
"type": "object",
"properties": {
"standingEyeHeight": {
"title": "Standing eye height (m)",
"type": "number"
},
"seatedEyeHeight": {
"title": "Seated eye height (m)",
"type": "number"
},
"eyeToNeck": {
"title": "?? what units? neck models have at least 2 if not 3 dimensions...",
"type": "number"
}
}
}
}
}
},
"required": ["personalSettings"]
}