📜 ⬆️ ⬇️

Create an app for Gear VR using Unity3D

The other day I had a chance to work with new virtual reality glasses from Samsung and Oculus - Gear VR. My task was to create an application for these glasses, which turned out to be a little more difficult than I had intended.

image

Why this article?


Samsung Gear VR is a new product and has not yet been released to the public, so there is still very little specific information about how to make friends with this technology with Unity3D, and it takes a long time to collect it bit by bit, and the official Integration guide didn't help me much. Hope this article saves you time.
')

Note


I omitted a too detailed description of each action, so for a complete understanding of the instructions you need to know the basic principles of Unity3d and be able to build an application for android.

Step by step instructions for integrating the OVR SDK into your Unity3D application


1. Install the Samsung Gear VR app on your phone. To do this, insert the phone into the glasses, there is a USB port. After that, the installation process will start, which will require your intervention. The phone can be removed, the installation process will not be interrupted. A link to the video with this process will be provided below.

2. Download and install the Android SDK and Unity3D, if you have not already done so.

3. Download the mobile SDK from Oculus . Do not be intimidated by the android icon, in the archive is a folder with unitypackage.

4. In the archive that you downloaded, we need the VrUnity folder -> UnityIntegration. The contents of the Project Settings folder need to be copied with replacement into a similar folder inside your project (ProjectName \ ProjectSettings), and unitypackage is simply integrated into your project.

5. Next you need to get some signature file. Install this application on your device.
Run it, your device id will be written there. The resulting device id is entered here and click the "Download" button.

6. The file that you downloaded in the 5th step, you need to place in the folder Assets \ Plugins \ Android \ assets of your project.

7. Next, you need to bring the application under android, after putting the type of texture compression GLES 3.0

8. Install the application on your device and try to launch it. A warning will appear on the screen that Gear VR glasses are required. Do not press anything, but simply insert the phone into the glasses and the application will start.

Personal remarks


1. At the moment I have not found a way to knock out a universal build that will adequately work on any device compatible with Gear VR, since a signature file associated with a Device ID is required for correct operation. I think the reason for this is that the glasses themselves have not yet come into open access.

2. I do not know for what reason, but in my build all the tags were constantly dropped. So, if everything works for you in Unity3d, but does not work in the build, you can search for the problem here.

3. In the official Integration guide there are a couple of tips on how to customize your Gear VR build, mainly related to the build graphic settings. If you have problems with FPS, I advise you to look there.

4. Apparently, the Samsung Gear VR only works in conjunction with Note 4.

Source: https://habr.com/ru/post/259367/


All Articles