Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
pdq72's avatar
pdq72
Honored Guest
7 years ago

Game view seems to ignore CenterEyeAnchor position from OVRCameraRig

So I am overriding the following code in the OVRCameraRig (line 180)
centerEyeAnchor.localPosition = centerEyePosition where centerEyePosition is a new calculation. This new calculation applies a translation gain along the forward axis.

This calculation seems to work as I am getting the desired result during editor play mode: 1) the camera gizmos show this new gain in scene view, and 2) the camera preview window also shows the new gain; however, the game preview window does not, nor does the view in the HMD (using CV1).

I am at a total lost. It seems that the game (and HMD) view ignores centerEyeAnchor.localPosition.

Using Unity 2018.4.6 and Oculus 1.39

Any ideas?