cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Started with One Computer

GigaSora
Expert Protege
Hey guys,

Experienced developer, but new to networking and platform SDK. I was wondering if there are any known (or not so known) ways to test features (P2P & VoIP) on one computer. I only have one Oculus and I'm having a hard time figuring out the general strategy. I imagine it has something to do with standalone mode, but the documentation confuses me.

Any general strategies for Network testing with one computer would be great!
5 REPLIES 5

GigaSora
Expert Protege
Should be noted that I'm using Unity.

MikeF
Trustee
so prior to the home 1.31 update it was quite easy, you could just build and run multiple instances on the same machine. You would only be able to see one instance at a time of course but you could still easily swap between instances by disabling vr, focus on other instance and enabling.

But now as of 1.31 you can at the most test two instances, one has to be in the unity editor and the other has to be a build. Any more instances and you'l get nothing in the headset and no input response. This is due to a change in home that only allows input focus on a single instance of an application (most likely due to dash)

I would like to hear if anyone has another suggestion though

GigaSora
Expert Protege

MikeF said:

so prior to the home 1.31 update it was quite easy, you could just build and run multiple instances on the same machine. You would only be able to see one instance at a time of course but you could still easily swap between instances by disabling vr, focus on other instance and enabling.

But now as of 1.31 you can at the most test two instances, one has to be in the unity editor and the other has to be a build. Any more instances and you'l get nothing in the headset and no input response. This is due to a change in home that only allows input focus on a single instance of an application (most likely due to dash)

I would like to hear if anyone has another suggestion though

Thank you for the response. If you could clarify on a couple of points: What is it that you mean by "disabling vr" before switching instances in the first paragraph? Is the disabling something I do in Unity code? Or from the Oculus app or something? Also, do I need to make a separate Oculus account to connect the two instances? Or can I connect from my OculusID to itself to test the SDK? The two instance constraint should be fine, so that's good.

MikeF
Trustee
I cant remember the exact api call for toggling vr mode, but its something like unityengine.xr.vrenabled(bool) so you can hook that up to a method in your code. In my case i set enable to left mouse click and disable to right mouse click.

You can just use a single account and it wont have any issues when communicating with the sdk, though of course you wont be able to extensively test features that require multiple users like rooms, voip etc...

This kind of setup should be enough to get you going but for any kind of advanced testing youl need other users to test with.

You might have some luck with creating a virtual machine and signing in to home as multiple users but ive never tested this so its just an idea

GigaSora
Expert Protege
Thanks Mike broski. This was very helpful.