void Update() { //camStatus if (!OvrPro.camStatus) { return; } 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); }
public Texture GetEyeTexture(int e) { if (ovrPro.UpdateImage(camPtr [0], camPtr [1])) { ++_bufferID; } return(camTex [e]); }
public bool Update() { if (ovrPro.UpdateImage(camPtr [0], camPtr [1])) { ++_bufferID; return(true); } return(false); }
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; } OvrPro.UpdateImage(CameraTexLeftPtr, CameraTexRightPtr); }
// Update is called once per frame 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(); } }