void Update() { //camStatus if (!OvrPro.camStatus) { return; } //Testing if (Input.GetKeyDown(KeyCode.Space)) { OvrPro.OvrvisionTrackReset(); } if (Input.GetKeyDown(KeyCode.G)) { useOvrvisionTrack ^= true; if (useOvrvisionTrack) { OvrPro.useOvrvisionTrack_Calib = true; CameraPlaneRight.active = !OvrPro.useOvrvisionTrack_Calib; } } if (useOvrvisionTrack) { if (Input.GetKeyDown(KeyCode.H)) { OvrPro.useOvrvisionTrack_Calib ^= true; CameraPlaneRight.active = !OvrPro.useOvrvisionTrack_Calib; } } //get image data OvrPro.useOvrvisionAR = useOvrvisionAR; OvrPro.useOvrvisionTrack = useOvrvisionTrack; OvrPro.UpdateImage(CameraTexLeftPtr, CameraTexRightPtr); if (useOvrvisionAR) { OvrvisionARRender(); } else { OvrvisionTracker[] otobjs = GameObject.FindObjectsOfType(typeof(OvrvisionTracker)) as OvrvisionTracker[]; foreach (OvrvisionTracker otobj in otobjs) { otobj.UpdateTransformNone(); } } if (useOvrvisionTrack) { OvrvisionTrackRender(); } }
void Update() { //camStatus if (!OvrPro.camStatus) { return; } //Testing if (Input.GetKeyDown(KeyCode.Space)) { OvrPro.OvrvisionTrackReset(); } if (Input.GetKeyDown(KeyCode.G)) { useOvrvisionTrack ^= true; if (useOvrvisionTrack) { OvrPro.useOvrvisionTrack_Calib = true; CameraPlaneRight.active = !OvrPro.useOvrvisionTrack_Calib; } } if (useOvrvisionTrack) { if (Input.GetKeyDown(KeyCode.H)) { OvrPro.useOvrvisionTrack_Calib ^= true; CameraPlaneRight.active = !OvrPro.useOvrvisionTrack_Calib; } } //get image data OvrPro.useOvrvisionAR = useOvrvisionAR; OvrPro.useOvrvisionTrack = useOvrvisionTrack; OvrPro.UpdateImage(CameraTexLeftPtr, CameraTexRightPtr); if (useOvrvisionAR) { OvrvisionARRender(); } if (useOvrvisionTrack) { OvrvisionTrackRender(); } }