Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
3.6 KiB

  1. The SocialStarter sample shows how to leverage Oculus Avatar and Oculus Platform features to make a very basic networked social experience.
  2. For full functionality, this sample requires the following:
  3. 1. An App ID from the Oculus Dashboard (https://dashboard.oculus.com/).
  4. 2. A build associated with the App ID must be uploaded to a release channel on the Dashboard.
  5. 3. The email associated with your Oculus account must be added to the Users for the release channel of the build.
  6. Setup instructions:
  7. 1. Create a new Unity project.
  8. 2. Import the Oculus Integration from the Unity Asset Store. The Oculus Integration contains everything you need to use Oculus Avatar and Oculus Platforms.
  9. 3. From the Oculus Dashboard, create an Oculus Rift app and copy the App ID. An App ID is required to use Avatar and Platform features. There must be a build associated with the App ID uploaded to a release channel on the Dashboard for full functionality. The email address associated with your Oculus account must be added to the Users list of the release channel.
  10. 4. From the Unity Editor menu bar, select Oculus Avatars > Edit Configuration and place your App ID in the two fields for Oculus Rift App Id and Gear VR App Id.
  11. 5. From the Unity Editor menu bar, select Oculus Platform > Edit Settings and place your App ID in the two fields for Oculus Rift App Id and Gear VR App Id.
  12. 6. Make sure the prefabs are set correctly. Select the OVRPlayerController object in the scene:
  13. a) Local Avatar Prefab should be set to the LocalAvatar (OvrAvatar) prefab found at Assets > Oculus > Avatar > Content > Prefabs.
  14. b) Remote Avatar Prefab should be set to the RemoteAvatar (OvrAvatar) prefab found at Assets > Oculus > Avatar > Content > Prefabs.
  15. c) From Assets/Oculus/Avatar/Samples/SocialStarter/Assets/Materials, drag Help to the OVRPlayerController’s Rift Material property.
  16. d) From Assets/Oculus/Avatar/Samples/SocialStarter/Assets/Materials, drag GearHelp to the OVRPlayerController’s Gear Material property.
  17. How to use:
  18. 1. When you first start up the sample you are placed in a virtual room. In the virtual room, the color of the floor and sphere are used as indicators.
  19. a) The floor color indicates whether you are the owner of the room. Blue means you are the owner of the room. Green means you are a member of the room that joined via an invitation from the owner.
  20. b) The sphere color indicates whether you are in an online room. White means you are in an online room. Black means that either online room creation or an invite attempt failed for some reason.
  21. 2. Your left hand should be holding the instructions UI. If you do not see the instructions, please make sure you followed steps 6c and 6d above. The instructions are as follows:
  22. Rift
  23. Click left stick: Toggle showing the instructions.
  24. Button Y: Toggle the sky camera. This allows you to view the scene from a static third-person camera.
  25. Button X: Room invites. This will bring up the invite UI, which will show a list of your friends that you can invite to the room. This may take a second or two to pop up. Note that this functionality only works if you have uploaded a build to the Dashboard for the App ID you used.
  26. Left stick: Move around.
  27. Right stick: Rotate direction.
  28. Oculus Go and Gear VR
  29. Trigger: Toggle showing the instructions.
  30. Touchpad click: Toggle the sky camera.
  31. Back button: Room invites.
  32. Touchpad: Move around.
  33. 3. When a user joins your room, a VoIP connection and a P2P connection will be set up. The P2P connection is used to send Avatar and positional updates. Note that this functionality only works if you have uploaded a build to the Dashboard for the App ID you used.