08-11-2021 08:30 PM
Has anyone managed to enable the passthrough function?
https://developer.oculus.com/experimental/passthrough-api/
I've tried the Oculus Integration 31.0 passthrough sample scenes, but I'm getting the error "Failed to initialize Insight Passthrough. Passthrough will be unavailable." OVRManager passthrough related options are enabled. I confirm I'm using Oculus runtime v31 and OVRPlugin 1.63.0, and the experimental system property is enabled.
<uses-feature android:name="com.oculus.experimental.enabled" android:required="true" />
<uses-feature android:name="com.oculus.feature.PASSTHROUGH" android:required="true" />
>adb shell getprop debug.oculus.experimentalEnabled
1
It seems OVRP_1_63_0.ovrp_InitializeInsightPassthrough() fails.
Solved! Go to Solution.
08-12-2021 08:25 AM
I still haven't had any luck getting the passthrough to work. Hope someone else has a better solution!
08-12-2021 08:52 AM
Yeah no luck there. Even check the mode with getprop. Definitely experimental.
08-12-2021 09:44 AM
Looks like I manage to enable it somehow, recreation of AndroidManifest and one of scene start working.
08-12-2021 10:22 AM
You should check which version of the Oculus XR Plugin you're using in the package manager. There was a recent preview version that addressed an initialization issue similar to the passthrough issue people are describing here (only works if splash screen is enabled).
[1.10.0-preview.1] - 2021-05-19
08-12-2021 01:03 PM
You recreated AndroidManifest?
08-12-2021 05:09 PM
Interesting, I've followed everything suggested here as well as doing many different tests but still no luck, all I see is a black background and no passthrough.
Here're my packages just in case someone knows the issue:
08-12-2021 07:02 PM
How do you do run-time loggins on Quest 2?
08-12-2021 07:21 PM
I normally use adb under platform tools and logcat which then I use the results by piping to a text file as follows:
C:\Program Files\Unity\Hub\Editor\2019.4.29f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools> .\adb.exe logcat > C:\temp\log.txt
08-12-2021 07:25 PM
Just what I needed. Thanks!
08-12-2021 07:35 PM
I've just found the Passthough API only works on IL2CPP/ARM64. It might be one of the pitfalls.
I brought confusion by starting this thread, so I wrote a step-by-step guide to build the passthrough scene.
- Create a new 3D template project with Unity 2021.1
- Open Build Settings and switch to Android platform
- Open Project Settings and switch "Color Space" to Linear
- IMPORTANT: And change "Script Backend" to IL2CPP and enable "ARM64" Target Architectures only
- Open Project Settings > Install XR Plugin Management and click "Install XR Plugin Management", enable "Oculus" plugin
- Import Oculus Integration 31.0 (and click "Yes" "Restart" "Upgrade" when dialogs appear)
- Open the "AugumentedObjects" scene in Assets/Oculus/SampleFramework/Usage/Passthrough/Scenes
- IMPORTANT: Select OVRManager and enable "Experimental Features Enabled" and "Passthrough Capability Enabled" (I feel the line "Requires Experimental Passthrough Capability enabled in the project settings" below is a bit confusing)
- IMPORTANT: And you need to enable the Quest experimental system property. This property will be reset when you reboot the Quest.
- Open Package Manager and install "Android Logcat" from Unity Registry
- Open "Window > Analysis > Android Logcat" (make sure Quest is connected)
- Select "Tools > Open Terminal" from the top-right button
- Execute "adb shell setprop debug.oculus.experimentalEnabled 1"
- Back to Unity and "Build and Run"
Now it should work 🙂