How Do I Upload a Build on to Oculus Rift?
My students and I have been very active in creating projects for VR over the past few years. Testing these projects on a arrangement with a connected Vive or Oculus Rift was fairly directly frontward and didn't involve a lot of steps. With the availability of the Oculus Go and Oculus Quest, the steps have increased but can still be done easily if you know the right procedures.
In this tutorial, we will exercise a total walkthrough of configuring your Unity projection for the Oculus Quest or Go and how to publish. If yous prefer a video tutorial, scroll to the lesser!
Getting Started
For this project, we used Unity 3D Personal Edition 2019.2.x. We created a game surround of our classroom edifice as a way to promote our top-ranked Game Design program. The project was initially designed to be deployed to a mobile device. Everything worked great on the mobile, so we then added the Oculus tools to Unity and reconfigured to deploy to Oculus Quest and Oculus Go.
In this walkthrough, I am deploying from a MacBook Pro. Everything works the same when deploying from Windows.
Set Developer Mode on your phone/tablet
Step 1 is to place your Oculus Quest or Go into Programmer Fashion. This is task must be completed on the phone or tablet that is associated with your Oculus Quest or Go. Notation that developer mode did not 'stick' the first time we set it to on. Later on several attempts to connect to the Quest, I check the setting again and found that it was off. One time I changed developer mode dorsum to on, information technology connected to the laptop without a problem.
Step 1A: Connect to your Quest or Get with your phone or tablet. Select … More Settings
Step 1B: Select Developer Mode from the listing
Step 1C: Change Developer Manner to On.
You should at present be able to connect your quest or go device to your laptop or desktop arrangement with a USB cord. You will be asked on the VR device to approve the connection.
Install Android Tools
Stride 2: You will need Android Tools to be able to deploy to a Quest or Go device. At a minimum Android version SDK 19 (Android four.4 or KitKat) and Android version SDK 25 (Android vii.one.1 Nougat) should be installed. This tin can be accomplished by installing Android Studio.
In one case installed, you volition need to add the SDKs by clicking on Configure at the bottom of the Get-go screen and selecting SDKs. Once you are in the Settings window, select Android iv.four and Android 7.1.ane, and then click Employ.
After the installation of the Android SDKS, select the SDK Tools tab and make certain that Android SDK Tools and Android SDK Platform-Tools are applied to your installation.
Finally, if y'all are working on a Windows computer, you will need the Oculus ADB drivers: https://developer.oculus.com/downloads/package/oculus-adb-drivers/
Android Tools in Unity
Step 3: To build for Quest and Go you must include the Android module in your Unity installation. To ensure proper installation, I recommend launching Unity Hub in Administrator mode (right-click on the app and choose Run as Ambassador). This seems to ensure that the needed Android files are installed correctly. Make sure that Android SDK & NDK Tools are selected.
If you lot are upgrading a project (which is what I am doing), you will need to add the Android module to the build of Unity if information technology is not already installed.
Make sure that Android SDK & NDK Tools are selected under Android Build Back up.
Project Build Settings
Step 4: Open or create your Unity Project.
Fix the Platform to Android in Build Settings (File > Build Settings). If y'all are converting an existing project to Android, this may take some time as Unity converts the project.
Make certain y'all have added the Scene to the Scenes in Build.
In one case you accept changed the Projection to Android in Build Settings, Click on the Player Settings push button in the bottom left corner of the Build Settings. Scroll down to Other Settings.
Under Identification, type in the Packet Name using reverse Java notation (com.business-url.projectname) and gear up the Minimum API Level to Android 4.4.
Finally, still in Role player Settings, scroll to the bottom and select XR Settings.
Click the checkbox on for Virtual Reality Supported. If Oculus is not listed in the Virtual Reality SDKs, click the + button and add Oculus. So select V2 Signing (Quest).
Close the Histrion Settings and Build Settings windows. It's time to get into the project!
Earlier you get busy building your scene, nosotros recommend adding the Oculus Controller to the Hierarchy of your project. This is the controller for the player'southward view of the environment, and where we are able to control whether nosotros are building for Oculus Quest or Go.
If you haven't already, download the Oculus Integration from the Asset Shop. Oculus updates this asset regularly, so brand sure you are using the latest version.
In your Asset folder, go to the Oculus Nugget bundle > VR > Prefabs folder and select the OVRPlayerController. Elevate it into your Hierarchy.
Place the Controller where you desire the player to start in the scene. If you are starting with a blank scene, this isn't disquisitional, but if you are working with a developed scene, the start location is of import for your histrion.
Once y'all have the OVRPlayerController in the scene, you can configure the target VR device: Oculus Quest or Oculus Go.
Open the OVRPlayerController in the Hierarchy and select the OVRCameraRig child object. In the Inspector find the OVR Manager (Script). Under Target Devices select either Quest or Gear VR or Go.
That's it, you lot take configured the basic settings for your VR equipment.
Note that we accept not configured the controllers or move. In our tests, we were able to move with the thumb directional controllers on the Quest only had no movement with the Oculus Go. We will address configuring the Controllers in some other post.
Lighting
When exporting to a Quest or Get, you CANNOT apply Realtime Global Illumination. All lighting must be broiled into the scene. Ensure that Realtime Global Illumination is not selected in your Lighting panel (Window > Rendering > Lighting Settings).
Nosotros found a huge functioning boost by using the Progressive GPU (Preview) setting in the Lightmapping Setting.
Also, if you have a large scene with a lot of lights, be certain to turn the Auto Generate to Off.
Testing the App on an Oculus Quest or Go
At that place are several ways to examination your app on the quest. You can do a Build & Run in Unity. Bold that your Quest is properly connected, you should see the app running on the device.
If you want to place the game on the device without beingness tethered to a estimator, you volition need to do a build. A build will generate an APK file (Android Package), which is the reason we had to install all of the Android files at the outset of this tutorial.
Building and Sideloading
Sideloading is the procedure to place the APK on a Quest or Get. We have shifted to using SideQuest rather than adb to handle Sideloading. SideQuest is an opensource project that works every bit well on Windows and Mac.
Once you have your Oculus connected via USB to your reckoner, elevate the APK file on to the SideQuest log in the top left of the app. SideQuest will take care of the rest of the installation.
Once SideQuest finishes, you will find the project in the Unknown Sources tab.
As previously mentioned, this procedure volition become the app installed onto your Oculus Quest or Oculus Go device. In that location will still be a lot to exercise to get everything working smoothly and efficiently on the device.
Spotter for more than tutorials on working with the Oculus Interaction package to improve your app!
Troubleshooting
We ran into the trouble that the Oculus Quest Programmer Mode turned off later on a while. If you lot are having bug connecting to your Quest, double-check developer style.
UPDATE: With the more than recent releases of Unity and Oculus tools for Unity, Oculus Go is no longer a selection option. Oculus Quest builds exercise not work on Oculus Go.
Source: https://myvrprofessor.com/how-to-install-your-unity-game-on-oculus-quest-or-oculus-go/
0 Response to "How Do I Upload a Build on to Oculus Rift?"
Postar um comentário