rev |
line source |
nuclear@0
|
1 /************************************************************************************
|
nuclear@0
|
2
|
nuclear@0
|
3 Filename : OVR_CAPI.h
|
nuclear@0
|
4 Content : Keys for CAPI calls
|
nuclear@0
|
5 Created : September 25, 2014
|
nuclear@0
|
6 Authors :
|
nuclear@0
|
7
|
nuclear@0
|
8 Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.
|
nuclear@0
|
9
|
nuclear@0
|
10 Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
|
nuclear@0
|
11 you may not use the Oculus VR Rift SDK except in compliance with the License,
|
nuclear@0
|
12 which is provided at the time of installation or download, or which
|
nuclear@0
|
13 otherwise accompanies this software in either electronic or hard copy form.
|
nuclear@0
|
14
|
nuclear@0
|
15 You may obtain a copy of the License at
|
nuclear@0
|
16
|
nuclear@0
|
17 http://www.oculusvr.com/licenses/LICENSE-3.2
|
nuclear@0
|
18
|
nuclear@0
|
19 Unless required by applicable law or agreed to in writing, the Oculus VR SDK
|
nuclear@0
|
20 distributed under the License is distributed on an "AS IS" BASIS,
|
nuclear@0
|
21 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
nuclear@0
|
22 See the License for the specific language governing permissions and
|
nuclear@0
|
23 limitations under the License.
|
nuclear@0
|
24
|
nuclear@0
|
25 ************************************************************************************/
|
nuclear@0
|
26
|
nuclear@0
|
27
|
nuclear@0
|
28
|
nuclear@0
|
29 #define OVR_KEY_USER "User" // string
|
nuclear@0
|
30 #define OVR_KEY_NAME "Name" // string
|
nuclear@0
|
31 #define OVR_KEY_GENDER "Gender" // string
|
nuclear@0
|
32 #define OVR_KEY_PLAYER_HEIGHT "PlayerHeight" // float
|
nuclear@0
|
33 #define OVR_KEY_EYE_HEIGHT "EyeHeight" // float
|
nuclear@0
|
34 #define OVR_KEY_IPD "IPD" // float
|
nuclear@0
|
35 #define OVR_KEY_NECK_TO_EYE_DISTANCE "NeckEyeDistance" // float[2]
|
nuclear@0
|
36 #define OVR_KEY_EYE_RELIEF_DIAL "EyeReliefDial" // int
|
nuclear@0
|
37 #define OVR_KEY_EYE_TO_NOSE_DISTANCE "EyeToNoseDist" // float[2]
|
nuclear@0
|
38 #define OVR_KEY_MAX_EYE_TO_PLATE_DISTANCE "MaxEyeToPlateDist" // float[2]
|
nuclear@0
|
39 #define OVR_KEY_EYE_CUP "EyeCup" // char[16]
|
nuclear@0
|
40 #define OVR_KEY_CUSTOM_EYE_RENDER "CustomEyeRender" // bool
|
nuclear@0
|
41 #define OVR_KEY_CAMERA_POSITION "CenteredFromWorld" // double[7]
|
nuclear@0
|
42
|
nuclear@0
|
43 // Default measurements empirically determined at Oculus to make us happy
|
nuclear@0
|
44 // The neck model numbers were derived as an average of the male and female averages from ANSUR-88
|
nuclear@0
|
45 // NECK_TO_EYE_HORIZONTAL = H22 - H43 = INFRAORBITALE_BACK_OF_HEAD - TRAGION_BACK_OF_HEAD
|
nuclear@0
|
46 // NECK_TO_EYE_VERTICAL = H21 - H15 = GONION_TOP_OF_HEAD - ECTOORBITALE_TOP_OF_HEAD
|
nuclear@0
|
47 // These were determined to be the best in a small user study, clearly beating out the previous default values
|
nuclear@0
|
48 #define OVR_DEFAULT_GENDER "Unknown"
|
nuclear@0
|
49 #define OVR_DEFAULT_PLAYER_HEIGHT 1.778f
|
nuclear@0
|
50 #define OVR_DEFAULT_EYE_HEIGHT 1.675f
|
nuclear@0
|
51 #define OVR_DEFAULT_IPD 0.064f
|
nuclear@0
|
52 #define OVR_DEFAULT_NECK_TO_EYE_HORIZONTAL 0.0805f
|
nuclear@0
|
53 #define OVR_DEFAULT_NECK_TO_EYE_VERTICAL 0.075f
|
nuclear@0
|
54 #define OVR_DEFAULT_EYE_RELIEF_DIAL 3
|
nuclear@0
|
55 #define OVR_DEFAULT_CAMERA_POSITION {0,0,0,1,0,0,0}
|
nuclear@0
|
56
|