Forum Discussion

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

Multiple Oculus?

We're working on a multi-player interactive experience in Unity and wondering if it's possible to use more than one Rift on a single computer?

Upon dropping two prefabs into the project and plugging two Oculus Rifts into the computer, it only seems to pick up one of them. Is this a physical limitation of the way the Oculus integrates with the computer?

Our current solution is to use two computers, with one pulling the head-tracking data and pumping it to the main computer over OSC into the Unity project.

As for 2 on the same computer, vision-wise it's fine. We can create a borderless window that spans both Oculus outputs - it's just the head-tracking data.

8 Replies

Replies have been turned off for this discussion
  • The SDK provides a function to enumerate all devices so you can pick the one you want. Sadly, this doesn't seem to work on Linux (or I'm doing something wrong) as I only see one of the Rifts. Note that I haven't tested this on Mac OS (not enough video ports) or Windows yet.
    In theory it should be possible as long as the Unity integration exposes this.
  • As far as I know, only one Rift can be used on one computer at a time. This is mainly because of the way the tracker works.

    If you are working on a multiplayer game you should use multiple computers and network them together.
  • The unity integration could handle multiple Rifts with a little modification. You'll notice that OVRDevice enumerates all of the trackers. The methods that interact with the tracker take a device ID parameter. The OVRCamera always asks for device 0 though. If another OVRCamera was modified to ask for device 1, then it would theoretically be possible to use both. I don't have a second Rift to test this theory though.
  • Thanks for your responses all. Cheers for pointing that out Boone. We'll give that a crack when we've got both in the studio again.

    Cheers.
  • After looking at it again, it looks like OVRDevice.InitSensorList() is just assuming a single Rift. So OVRDevice would also require some modification.
  • benxtan's avatar
    benxtan
    Honored Guest
    Has anyone tried this? I'm keen to know if it works.
    Otherwise I'll be doing my own experiments soon and will post results here.
  • Hi everyone.
    Just reopening this subject to answer if anyone get two HMD working in the same PC in Direct Mode?
    Thanks.