Exemple #1
0
        public bool GetCameraDistortion(NativeEye eye, ref NRDistortionParams distortion)
        {
            if (eye != NativeEye.RGB)
            {
                Debug.LogError("[NativeHMD] Only for rgb camera now. Not support this camera:" + eye.ToString());
                return(false);
            }
            var result = NativeApi.NRHMDGetCameraDistortionParams(m_HmdHandle, (int)eye, ref distortion);

            return(true);
        }
Exemple #2
0
        public bool GetCameraIntrinsicMatrix(NativeEye eye, ref NativeMat3f CameraIntrinsicMatix)
        {
            if (eye != NativeEye.RGB)
            {
                Debug.LogError("[NativeHMD] Only for rgb camera now. Not support this camera:" + eye.ToString());
                return(false);
            }
            var result = NativeApi.NRHMDGetCameraIntrinsicMatrix(m_HmdHandle, (int)eye, ref CameraIntrinsicMatix);

            return(true);
        }