ovr_sdk

diff LibOVR/Src/OVR_CAPI_Keys.h @ 0:1b39a1b46319

initial 0.4.4
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 14 Jan 2015 06:51:16 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/LibOVR/Src/OVR_CAPI_Keys.h	Wed Jan 14 06:51:16 2015 +0200
     1.3 @@ -0,0 +1,56 @@
     1.4 +/************************************************************************************
     1.5 +
     1.6 +Filename    :   OVR_CAPI.h
     1.7 +Content     :   Keys for CAPI calls
     1.8 +Created     :   September 25, 2014
     1.9 +Authors     :   
    1.10 +
    1.11 +Copyright   :   Copyright 2014 Oculus VR, LLC All Rights reserved.
    1.12 +
    1.13 +Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
    1.14 +you may not use the Oculus VR Rift SDK except in compliance with the License,
    1.15 +which is provided at the time of installation or download, or which
    1.16 +otherwise accompanies this software in either electronic or hard copy form.
    1.17 +
    1.18 +You may obtain a copy of the License at
    1.19 +
    1.20 +http://www.oculusvr.com/licenses/LICENSE-3.2
    1.21 +
    1.22 +Unless required by applicable law or agreed to in writing, the Oculus VR SDK
    1.23 +distributed under the License is distributed on an "AS IS" BASIS,
    1.24 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.25 +See the License for the specific language governing permissions and
    1.26 +limitations under the License.
    1.27 +
    1.28 +************************************************************************************/
    1.29 +
    1.30 +
    1.31 +
    1.32 +#define OVR_KEY_USER                        "User"              // string
    1.33 +#define OVR_KEY_NAME                        "Name"              // string
    1.34 +#define OVR_KEY_GENDER                      "Gender"            // string
    1.35 +#define OVR_KEY_PLAYER_HEIGHT               "PlayerHeight"      // float
    1.36 +#define OVR_KEY_EYE_HEIGHT                  "EyeHeight"         // float
    1.37 +#define OVR_KEY_IPD                         "IPD"               // float
    1.38 +#define OVR_KEY_NECK_TO_EYE_DISTANCE        "NeckEyeDistance"   // float[2]
    1.39 +#define OVR_KEY_EYE_RELIEF_DIAL             "EyeReliefDial"     // int
    1.40 +#define OVR_KEY_EYE_TO_NOSE_DISTANCE        "EyeToNoseDist"     // float[2]
    1.41 +#define OVR_KEY_MAX_EYE_TO_PLATE_DISTANCE   "MaxEyeToPlateDist" // float[2]
    1.42 +#define OVR_KEY_EYE_CUP                     "EyeCup"            // char[16]
    1.43 +#define OVR_KEY_CUSTOM_EYE_RENDER           "CustomEyeRender"   // bool
    1.44 +#define OVR_KEY_CAMERA_POSITION				"CenteredFromWorld" // double[7]
    1.45 +
    1.46 +// Default measurements empirically determined at Oculus to make us happy
    1.47 +// The neck model numbers were derived as an average of the male and female averages from ANSUR-88
    1.48 +// NECK_TO_EYE_HORIZONTAL = H22 - H43 = INFRAORBITALE_BACK_OF_HEAD - TRAGION_BACK_OF_HEAD
    1.49 +// NECK_TO_EYE_VERTICAL = H21 - H15 = GONION_TOP_OF_HEAD - ECTOORBITALE_TOP_OF_HEAD
    1.50 +// These were determined to be the best in a small user study, clearly beating out the previous default values
    1.51 +#define OVR_DEFAULT_GENDER                  "Unknown"
    1.52 +#define OVR_DEFAULT_PLAYER_HEIGHT           1.778f
    1.53 +#define OVR_DEFAULT_EYE_HEIGHT              1.675f
    1.54 +#define OVR_DEFAULT_IPD                     0.064f
    1.55 +#define OVR_DEFAULT_NECK_TO_EYE_HORIZONTAL  0.0805f
    1.56 +#define OVR_DEFAULT_NECK_TO_EYE_VERTICAL    0.075f
    1.57 +#define OVR_DEFAULT_EYE_RELIEF_DIAL         3
    1.58 +#define OVR_DEFAULT_CAMERA_POSITION			{0,0,0,1,0,0,0}
    1.59 +