Steven Ho
Steven Ho

Reputation: 51

Why is Unity Game view still showing only one eye after switched to "Both Eyes" mode?

I encountered a problem when developing a stereoscopic project with HTC Vive Pro Eye and SteamVR on Unity v2022.3.

After start running in the Unity Editor, even if I switched the Game view to Both Eyes, the view still kept a monocular view, although the display actually seen in the HMD was already stereoscopic as expected. I have tried adding

XRSettings.gameViewRenderMode = GameViewRenderMode.BothEyes; 

in my script but it didn't help. See below image

where the difference between eyes is the purple, eye-tracking gaze ray.

Then I found the Project SettingsXR Plug-in ManagementOpenVRMirror View Mode options which seems to relate, but it didn't provide a Both Eyes option

The Left or Right options only determined whether the Game view keeps at left-eye or right-eye display. The None option would totally shut off the Game view, while the Open VR option seemed to turn the Game view to a mix of both eyes and also impacted the SteamVR preview

enter image description here

Now what can I do to recover the Both Eyes mode in the Game view?

PS.

Interestingly, this project was updated and reconstructed from a lower version of Unity (v2019.4). In that older version, the Game view could display the Both Eyes mode normally

enter image description here

and it even did not have a XR Plugin management package

enter image description here

In all the cases above, the display inside the VR headset was always normal and stereoscopic as intended. The problem was only regarding the Game view.

Upvotes: 2

Views: 322

Answers (0)

Related Questions