private OpenVRScene(float nearClip, float farClip, CVRSystem hmd, int leftIndex, int rightIndex) { // set up the hmd this.hmd = hmd; NearClip = nearClip; FarClip = farClip; leftEyeProj = hmd.GetProjectionMatrix(EVREye.Eye_Left, nearClip, farClip, EGraphicsAPIConvention.API_OpenGL).ToGLMatrix4(); rightEyeProj = hmd.GetProjectionMatrix(EVREye.Eye_Right, nearClip, farClip, EGraphicsAPIConvention.API_OpenGL).ToGLMatrix4(); leftEyeView = hmd.GetEyeToHeadTransform(EVREye.Eye_Left).ToGLMatrix4().Inverted(); rightEyeView = hmd.GetEyeToHeadTransform(EVREye.Eye_Right).ToGLMatrix4().Inverted(); leftHandControllerIndex = leftIndex; rightHandControllerIndex = rightIndex; OpenVRInput = new OpenVRInputObservable(hmd); }