Beispiel #1
0
        /// <summary>
        /// Get the Distortion of rgbcamera.
        /// </summary>
        /// <returns></returns>
        public static NRDistortionParams GetRGBCameraDistortion()
        {
            NRDistortionParams result = new NRDistortionParams();

            NRDevice.Instance.NativeHMD.GetCameraDistortion(NativeEye.RGB, ref result);
            return(result);
        }
Beispiel #2
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);
        }
Beispiel #3
0
 public static extern NativeResult NRHMDGetCameraDistortionParams(
     UInt64 hmd_handle, int eye, ref NRDistortionParams out_params);