Hongliu Academy will make you a few steps faster. Hello, I am Dazhi.
Recently, the Oculus Quest v31 SDK has been updated to support the perspective function (experimental version), but after a while of operation, I found that the screen is black no matter what I do. Dazhi finally knew how to solve it today.
In addition to setting according to the documentation of Oculus Quest (https://developer.oculus.com/experimental/passthrough-api/#implement-passthrough), the part that needs to be set is shown in the figure below:
The Scripting Backend needs to be changed to IL2CPP
, and Target Architectures is only checked ARM64
.
The above two documents for setting up Oculus are not mentioned.
To test the Quest see-through AR function, the complete process is as follows:
- Use 3D template to create projects;
- Open Build Settings and switch to Android platform
- Open Project Settings and switch Color Space to
Linear
- Very important : Scripting Backend needs to be changed to
IL2CPP
, and Target Architectures is only checkedARM64
. - Project Settings > Install XR Plugin Management, click "Install XR Plugin Management", check "Oculus"
- Search and import Oculus Integration 31.0 in AssetStore (click "Yes" "Restart" "Upgrade" in turn when prompted in the following pop-up box)
- Opening
Assets/Oculus/SampleFramework/Usage/Passthrough/Scenes
"AugumentedObjects" scene - Very important : Select the object in the Hierarchy
OVRManager
, and check "Experimental Features Enabled" and "Passthrough Capability Enabled" - The device needs to turn on the experimental mode, plug in the device that has turned on the developer mode, and execute
adb shell setprop debug.oculus.experimentalEnabled 1
- Click "Build and Run" experience in Unity
VRARMR communication group: 695965244