Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

How to setup Multiplayer with Oculus Subsystem?

JohnSahharJohnSahhar Posts: 6 Oculus Start Member
Hey,

I'm looking for any guides on building a networked VR game using the oculus subsystem via blueprints in Unreal.
I don't seem to see anything online.

I've found this: https://forums.unrealengine.com/development-discussion/vr-ar-development/106631-single-multiplayer-touch-vive-proteus-blueprint-only-template

But it's overloaded, and buggy.
I've managed to get networking working with steam subsystem. But I'd like to use the oculus subsystem.

Comments

  • JohnSahharJohnSahhar Posts: 6 Oculus Start Member
    I noticed after enabling OSS I received the following BP Nodes: Where is there documentation on how to properly use these to create a networked game? 

  • NeontopNeontop Posts: 231 Oculus Start Member
    Hi @JohnSahhar you have one template for unreal inside the platform SDK.
    You will have access to many function s inside widgets.
    I think that you have those template in sdk 1.24 and also 1.28.
    Just download and unzip to see for the examples. 


  • aussieburgerVRaussieburgerVR Posts: 244 Oculus Start Member
    Neontop said:
    Hi @JohnSahhar you have one template for unreal inside the platform SDK.
    You will have access to many function s inside widgets.
    I think that you have those template in sdk 1.24 and also 1.28.
    Just download and unzip to see for the examples. 


    thanks for that. The link for those looking:


    then in the folder: \Samples\UnrealSample

    has what it looks like we're after :) Strange it's not included in the unreal samples folder in the actual unreal git repository though would make it easier to find and more consistant keeping it with the other unreal samples


  • Mohammed_hashimMohammed_hashim Posts: 99 Oculus Start Member
    edited November 2018
    @@aussieburgerVR
    aussieburgerVR said:
    Neontop said:
    Hi @JohnSahhar you have one template for unreal inside the platform SDK.
    You will have access to many function s inside widgets.
    I think that you have those template in sdk 1.24 and also 1.28.
    Just download and unzip to see for the examples. 


    thanks for that. The link for those looking:


    then in the folder: \Samples\UnrealSample

    has what it looks like we're after :) Strange it's not included in the unreal samples folder in the actual unreal git repository though would make it easier to find and more consistant keeping it with the other unreal samples


    Did you able to make the session work? its been a week and i'm trying to make it work but no success till now.

  • NeontopNeontop Posts: 231 Oculus Start Member
    edited November 2018
    Hi @Mohammed_hashim the MP session is working with the UnrealSample inside the SDK.
    I think that it is better to use the example corresponding to the Unreal distribution of Oculus git.
    I'm working on the Oculus Avatar MP but still have problems as I'm not a pro in c++ and also with replication.
    Do you have 2 Rifts to test MP ?
    Here is the spec for UE4 4.21

    The 4.21 branch of our GitHub contains oculus-4.21.0-preview-3-1.30.0.

     It is based off Partner-Oculus-4.21 @4514247, and contains OVRPlugin 1.30.0, Platform SDK 1.24.0, Audio SDK 1.18.0, and Avatar SDK 1.12.0.

  • Mohammed_hashimMohammed_hashim Posts: 99 Oculus Start Member
    edited November 2018
    Neontop said:
    Hi @Mohammed_hashim the MP session is working with the UnrealSample inside the SDK.
    I think that it is better to use the example corresponding to the Unreal distribution of Oculus git.
    I'm working on the Oculus Avatar MP but still have problems as I'm not a pro in c++ and also with replication.
    Do you have 2 Rifts to test MP ?
    Here is the spec for UE4 4.21

    The 4.21 branch of our GitHub contains oculus-4.21.0-preview-3-1.30.0.

     It is based off Partner-Oculus-4.21 @4514247, and contains OVRPlugin 1.30.0, Platform SDK 1.24.0, Audio SDK 1.18.0, and Avatar SDK 1.12.0.
    Hi Neontop
    I tried the sample but i didn't even understand how to use it to let stranger player join, i mean the first instance create the session but how can i join that session from 2nd instance of the sample project ? there are no join/find session button in the UI. 
    I want to make a simple browse session and i'm failing. usual 1st player create session then the 2nd player find it and join. no idea whats going on here and how to set it up .
    BTW I don't own 2 Rift i'm using one PC to run both instance on 2d screen and based on the document and the readme file with the SDK it says its possible.

    If you know how to use the sample to let the 2nd player find the session pls let me know.
  • NeontopNeontop Posts: 231 Oculus Start Member
    edited November 2018
    Hi @Mohammed_hashim.
    MP session in UE4 with Oculus subsystem  only works on packaged project.
    To test the MP with UE4 I was using the plugin of mordental Vr Expansion as you can use 1 HMD on one PC and one FPS on second PC.
    The session is handled on the widget OSSSession which take care of Creating sessions..and also different type of network connections.
    I using mainly 3 widgets: the main menu, the session widget and the friendliest widget.
    And I can confirm that it is working.
    😉
    Now as a Start Member I received also a Rift/Touch so I was able to test the platform SDK with the 2 HMD with success. 


  • Mohammed_hashimMohammed_hashim Posts: 99 Oculus Start Member
    Neontop said:
    Hi @Mohammed_hashim.
    MP session in UE4 with Oculus subsystem  only works on packaged project.
    To test the MP with UE4 I was using the plugin of mordental Vr Expansion as you can use 1 HMD on one PC and one FPS on second PC.
    The session is handled on the widget OSSSession which take care of Creating sessions..and also different type of network connections.
    I using mainly 3 widgets: the main menu, the session widget and the friendliest widget.
    And I can confirm that it is working.
    😉
    Now as a Start Member I received also a Rift/Touch so I was able to test the platform SDK with the 2 HMD with success. 

    So you haven't tried it on the same PC? since sample project doesn't need HMD and That's what i'm trying to find out right now :)  
    And congratulation on your 2nd HMD i still haven't got mine and it might take a while.
  • architetto.messinaarchitetto.messina Posts: 8
    NerveGear
    Hi Neontop, according to you, there's a way to connect in multiplayer two Oculus Quest in Unreal Engine? Thank's in advance!
  • tpg.sabibo00.questtpg.sabibo00.quest Posts: 47
    Brain Burst
    How do you test the Unreal Sample?  There seems to be no instructions or documentation.  Do you need two different Rift accounts?  I have two computers with Rifts but not two accounts...
Sign In or Register to comment.