Forum Discussion
ethnochris
12 years agoHonored Guest
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.
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
- renderingpipeliHonored GuestThe 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. - cyberealityGrand ChampionAs 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. - boone188Honored GuestThe 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.
- ethnochrisHonored GuestThanks 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. - boone188Honored GuestAfter looking at it again, it looks like OVRDevice.InitSensorList() is just assuming a single Rift. So OVRDevice would also require some modification.
- benxtanHonored GuestHas 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. - benxtanHonored GuestIf anyone is still interested in this, here is a github repo with my modifications to the Oculus SDK to allow 2 rifts to work on one computer.
https://github.com/DigitalArtsNetworkSydney/DualOculus - lrbisoloExplorerHi everyone.
Just reopening this subject to answer if anyone get two HMD working in the same PC in Direct Mode?
Thanks.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago