Build a project for Gear VR
This topic provides an overview of the steps to successfully build and deploy a project for the Gear VR HMD.
- Log in to your Oculus developer account at https://developer.oculus.com/osig/ and follow the instructions to generate an osig file for your device.
- Start your Stingray project using the VR Gear template, available in the Project Manager.
By default, this VR project template is set up to use the Stingray Mini renderer.
Refer to Optimize VR content for mobile devices for tips on preparing your content to work with the mini renderer.
When your project is ready to deploy to a device, open the Connections panel (Window > Deploy and Connect > Connections) and add your device target with the correct IP address. (See also Using the Connections panel.)
- Select Android Flavor: "GearVR".
- In the pop-up that appears, specify the location of the osig file.
Run the project.
Advanced: Faster iteration process (for customers with source access)
After you deploy the project to your device, use the following process to iterate faster.
- Add your osig file to 'runtime\plugins\gearvr_plugin\resources\app\src\main\assets'.
- Rebuild android with "make.rb -p android --use-gearvr".
- Run Stingray with the script 'tools\command_line\gearvr-run.rb'.
Tip: Use remote ADB over TCP to avoid pulling the device out of the HMD for every restart.
To connect:
- Connect your devices via USB. (See also Get started on Android.)
- Enter "adb tcpip 5555" and then "adb connect".
- Unplug your device from the USB and use as usual.