Antilatency & OculusGo Quick setup Guide using Unity 2019.1.x // Second part, OculusGo test

24 Jul 2019 Posted by: Comments: 0 In: tutorial

In the previous tutorial, we installed antilatency software to test the tracker for a Desktop app. In this tutorial, we’ll setup a Unity project for the OculusGo, and use AntilatencySDK to test 6DOF on our OculusGo HDM. Let’s start!

Unity project setup

We already downloaded Unity with its Android Build Support.

  1. Switch Build Platform to Android in Build settings panel:
  2. Go to the AssetStore and download and import OculusIntegration. It’s free, and it is a collection of modules and scripts that allow a better integration with Oculus SDK inside Unity. This asset store module is mandatory, if you want to use Antilatency VR sample project without problems.
  3. Sometimes (depending on your Unity version) the last step could cause a Unity crash. Don’t worry: restart Unity Hub and reopen the project. If at start a newer version of the plugin is detected, click Yes to update, then Restart again.
  4. Now its time to setup project settings for your OculusGo. If you want to develop for VR, you have to take into account a lot of performance issues that could arise, and to know which settings are appropriate for the project, a very good start is to read this post in the official Oculus developer blog. Follow the entire post suggestions, with only one exception: I suggest you to leave the ScriptingBackend option to Mono, to avoid long build times.
  5. Install ADB. Android Debug Bridge is the main tool used to communicate with an Andorid device for debugging. Download from the Android developer website, and unzip the file content in C:\ADB (this directory path is not mandatory, it is only a suggestion). To test it, from command prompt, write: C:\ADB\adb help, and it should reply with the adb help info.
  6. Install ADB OculusGo Driver. Download from the Oculus developer website, unzip the file, right-click on the .inf file and select install.
  7. Set your OculusGo to Developer mode. Go to the Oculus App on your mobile phone and click on your OculusGo. Then click Settings and DeveloperMode: switch it to On.
  8. Using adb from the command prompt, it is possible to connect and communicate with an Android device. Connect your OculusGo via USB to your PC.
  9. From the command prompt, type: adb devices. If it is the first time you run this command, adb should advice you that your OculusGo is connected to your PC, but it is unauthorized. Something like this:

    If your device is not listed:

    • you don’t have the correct USB driver
    • try another USB cable and/or USB port
  10. You have to trust your PC from within your OculusGo. Put your headset on. You should see something like:
  11. Click Allow and then Ok
  12. Now back to the Command prompt: type adb devices again. Now you should see device instead of unauthorized along your device ID
  13. So far so good. Now you are able to install Android builds on your OculusGo. Every time you have to install an .apk build into your Oculus, you should:
    1. Connect your OculusGo to the PC
    2. type adb devices and check that it is connected
    3. type adb install -r C:\<pathToYourApkFile>\ApkFileName.apk (we use the -r option because if you need to reinstall it again, this option will overwrite the existing one)

Antilatency VR project import

  1. Go to your downloaded AntilatencySDK folder: in the previous tutorial we already imported AntilatencyIntegration.unitypackage in our Unity project. If you didn’t, do it now. Moreover, we need to import AntilatencyIntegrationOculusExtension.unitypackage.
  2. Once you imported both unitypackages, you’re almost ready to go!
  3. Open Assets/Antilatency/Integration.Oculus/Samples/AltOculusSample and build the project, including only this scene. Save the .apk file into a /Build folder outside the Asset folder. Name it AltOculusSample.apk, for example.
  4. At the end of the process, you should have your apk in the folder C:\<pathToYourApkFile>\AltOculusSample.apk
  5. You should already have your OculusGo connected to your PC; if not, connect it now (see the previous section on how to do this)
  6. From your command prompt, type adb install -r C:\<pathToYourApkFile>\AltOculusSample.apk. If everything is ok, the command prompt should reply with Success: your apk is now loaded and installed into your OculusGo!

OculusGo and Antilatency tracker setup

In order to connect your Antilatency Tracker with your OculusGo, you need a microUSB/microUSB cable (see part one of this tutorial for the Amazon link), and attach the tracker in the bootm center of your HDM:

Start the Antilatency apk

  1. Put your OculusGo on.
  2. From your dashboard, go to Unknown sources: you should see your apk listed. Click on it and.. you’re ready to experiment 6DOF with your OculusGo!

Here it is a final test: you can see the OculusGo moving on the floor (even outside the floor, if you look back to the floor) and the live recording of the scene.

Leave a Comment!

Your email address will not be published. Required fields are marked *