Forum Discussion

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

How to view content in right eye from Unity + Oculus Rift from primary monitor



Completely new to Unity Here. I'm using Unity 5.3.4f1 to make a VR Game on Oculus Rift.



Currently I'm using the setting under the OVRCameraRig to target display to be right eye only.
This is the setting for the Camera



In order to monitor what the player is doing, I would like to display
his right eye on the primary monitor. However, for some weird reason
the content rendered on the primary monitor is the one from his left eye
which is blacked out.



Could someone help me with figuring out how to do so?



6 Replies

Replies have been turned off for this discussion
  • This is not directly possible. You could make a third camera with target eye = none to render whatever you wanted to the main display though.
  • Saangi's avatar
    Saangi
    Honored Guest

    vrdaveb said:

    This is not directly possible. You could make a third camera with target eye = none to render whatever you wanted to the main display though.



    Just to clarify when you said third camera, all i need to do is duplicate the current camera i'm using and then change the target eye to none? Because that's what I did but it didn't render on the main display.
  • That should work. Next to Target Eye there is also a Display option. What is that set to? If the Camera is still a child of your OVRCameraRig, it may be getting disabled. Try moving it to another GameObject.
  • Saangi's avatar
    Saangi
    Honored Guest
    I duplicated the entire OVRCameraRig as shown in here and added it to another GameObject.
    The settings for the first camera under OVRCameraRig is this:

    And the settings for the second camera under OVRCameraRig is this:



    Do i have to change the Display to another display like Display 2? are there any other scripts to attach or write to any of the camera??

  • Here is how I would set it up. Make your "Right Camera" a child of the main VR camera and translate it to the right by 0.03m. The parent Camera will render to the headset (both eyes) and the "Right Camera" will render only to the main monitor, from the perspective of the right eye.