Ejemplo n.º 1
0
 protected abstract void updateCameraTransforms(AirVRClientConfig config, Vector3 centerEyePosition, Quaternion centerEyeOrientation);
 protected virtual void updateControllerTransforms(AirVRClientConfig config)
 {
 }
Ejemplo n.º 3
0
 protected abstract void setupCamerasOnBound(AirVRClientConfig config);
Ejemplo n.º 4
0
 protected override void updateCameraTransforms(AirVRClientConfig config, Vector3 centerEyePosition, Quaternion centerEyeOrientation)
 {
     updateTrackingModel();
     _trackingModelObject.UpdateEyePose(config, centerEyePosition, centerEyeOrientation);
 }
 protected abstract void updateCameraProjection(AirVRClientConfig config, float[] projection);
Ejemplo n.º 6
0
 protected override void updateCameraTransforms(AirVRClientConfig config, Vector3 centerEyePosition, Quaternion centerEyeOrientation)
 {
     _cameraAnchor.localRotation = centerEyeOrientation;
     _cameraAnchor.localPosition = centerEyePosition;
 }
Ejemplo n.º 7
0
 protected override void updateCameraProjection(AirVRClientConfig config, float[] projection)
 {
     // do nothing; a stereoscopic camera must keep its appropriate projection
 }
Ejemplo n.º 8
0
 protected override void setupCamerasOnBound(AirVRClientConfig config)
 {
     _cameras[0].projectionMatrix = config.GetLeftEyeCameraProjection(_cameras[0].nearClipPlane, _cameras[0].farClipPlane);
 }
Ejemplo n.º 9
0
 public static void SetConfig(int playerID, AirVRClientConfig config)
 {
     ocs_SetConfig(playerID, JsonUtility.ToJson(config));
 }
Ejemplo n.º 10
0
 protected abstract void OnUpdateEyePose(AirVRClientConfig config, Vector3 centerEyePosition, Quaternion centerEyeOrientation);
Ejemplo n.º 11
0
 // implements AirVRTrackingModel
 protected override void OnUpdateEyePose(AirVRClientConfig config, Vector3 centerEyePosition, Quaternion centerEyeOrientation)
 {
     centerEyeAnchor.localRotation = leftEyeAnchor.localRotation = rightEyeAnchor.localRotation = centerEyeOrientation;
 }
Ejemplo n.º 12
0
 protected override void setupCamerasOnBound(AirVRClientConfig config)
 {
     leftEyeCamera.projectionMatrix  = config.GetLeftEyeCameraProjection(leftEyeCamera.nearClipPlane, leftEyeCamera.farClipPlane);
     rightEyeCamera.projectionMatrix = config.GetRightEyeCameraProjection(rightEyeCamera.nearClipPlane, rightEyeCamera.farClipPlane);
 }