r/oculusdev • • Nov 27 '17

Question Regarding Multiplayer and Networking Rooms using the Oculus Platform SDK

Hello,

Is there anyone here who used the networking tools from the Platform SDK?

I managed to create a room and invite users from the friends list but I'm struggling to move forward to synchronize everything in the scene between the users (avatars + dynamic objects). Should I manage everything using the UpdateDataStore function?

Thank you for your help!

8 Upvotes

4 comments sorted by

3

u/GEMISIS Nov 27 '17

The datastore is not how you want to do that at all. You should look at the Avatar multiplayer scene demo from Oculus. It covers how you can do this.

1

u/baptiiste Nov 28 '17

Thank you, is this the Unity Social Starter Example (https://developer.oculus.com/documentation/avatarsdk/latest/concepts/avatars-sdk-unity-example-social/)? I can't manage to download it, is this supposed to be included in the Avatars SDK?

2

u/GEMISIS Nov 29 '17

The Social Starter Example should be included with the Avatars SDK yes (see here for a list of examples).

The RemoteLoopback sort of demonstrates this in the remote Avatar handling code as well. I'm surprised there isn't more documentation on setting up a scene with this online. I'll write something up over the next week or so for my developer diaries (time permitting).

1

u/jbroadway Nov 28 '17

I agree with @GEMISIS, Oculus provides a demo that shows you all the basics together. Essentially you need to connect the users to each other as peers and transmit data between them through their peer-to-peer connections. Look at the Peer and Voice stuff in there in particular.