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.

64 lines
2.9 KiB

  1. # Overview
  2. This example demonstrates using the Oculus In-App-Purchase API and skill based matchmaking.
  3. The setting is a simple boardgame (which you are encourage to chage to your creative idea!)
  4. on a 3x3 grid with two pieces and one special 'power-piece' that can be purchased with
  5. IAP through the Oculus Store. After an Online match is completed the ranking is sent to
  6. the Matchmaking Service so that following match selections will take into account a user's
  7. skill level.
  8. # Application Setup
  9. 1. Open the Project in Unity 5.4.1p1 or later
  10. 2. Import the OculusPlatform Unity package
  11. - Unity: Main Menu -> Assets -> Import Package -> Custom Package
  12. - SDK Location: Unity/OculusPlatform.unitypackage
  13. ## Rift
  14. 1. Create your Rift application on the Oculus Developer Dashboard
  15. 2. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Oculus Rift App Id)
  16. ## GearVR
  17. 1. Create the GearVR application on the Oculus Developer Dashboard
  18. 2. Move the GearVR application into the Rift application's App Grouping
  19. 3. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Gear VR App Id)
  20. 4. Copy the OSIG files for the GearVR devices you are testing to Assets\Plugins\Android\Assets
  21. # Configure Matchmaking
  22. 1. On the Oculus Dashboard, navigate to the Matchmaking section for your App Grouping
  23. 2. Change the option box from 'Pools' to 'Skill Pools'
  24. 3. Click Create Pool
  25. 4. Set the 'Skill Pool Key' to ''VR_BOARD_GAME''
  26. 5. Select ''Medium'' for the 'Luck Factor'
  27. 6. Enter ''0'' for the 'Draw Probability
  28. 7. Click 'Save & Deploy'
  29. 8. Change the option box 'Skill Pools' to 'Pools'
  30. 9. Click Create Pool
  31. 10. Set the 'Pool Key' to ''VR_BOARD_GAME_POOL''
  32. 11. Set the Mode to Quickmatch
  33. 12. Enter ''2'' for both the Min and Max Users
  34. 13. Select ''VR_BOARD_GAME'' for the 'Skill Pool'
  35. 14. Leave 'Advanced Quickmatch' set to ''No''
  36. 15. Leave 'Should Consider Ping Time?' at the default setting of ''No''
  37. 16. Click 'Save & Deploy'
  38. # Configure IAP
  39. 1. On the Oculus Dashboard, make sure the Payment Info is setup for your Organization
  40. 2. Navigate to the IAP tab under your App Grouping
  41. 3. Select the Upload TSV button and choose the Oculus_IAP.tsv in the project root directory.
  42. # Upload your builds
  43. Build executables from Unity and upload them to your Application Dashboard
  44. * Rift
  45. 1. Add the executable and data folder to a zip file
  46. 2. Upload the zip to the Alpha channel on your Dashboard
  47. 3. Set the executable name you chose in the zip file
  48. 4. Add Friends you are testing with as Subscribed Users for the Alpha channel
  49. * GearVR
  50. 1. Create an android keystore (if you don't have one) so Unity can sign the build. (Player Settings -> Publishing Settings)
  51. 2. Upload the apk to the Alpha channel on your Dashboard
  52. 3. Each apk you upload needs a new build number (Player Settings -> Other Settings)
  53. 4. Add Friends you are testing with as Subscribed Users for the Alpha channel