0.背景
OculusQuest2に試験的機能として
ビデオパススルーが試験実装されました。
動かすまで地雷踏みまくったので
2021.8.16現在での個人的忘備録も兼ねたこれが最短かもしれない導入方法。
1.環境準備
・unity2020.1.17f1(unity2020.3LTSでも確認)
・上記unityインストール時にAndroidサポート一式※▽収納開いて確認すること!!
・OculusQuest2(v31)、Quest1でも可能らしい(未検証)
・adbが使える前提
2.設定
1.Androidにスイッチプラットフォーム
2.playersettingから
・カラーをGammaからLinner
・mono2からIL2CPP
・vulkan削除
・ARM64にチェック
・showSplushImageにチェック(unitypro,plusの場合)
・XR-manegementのOculusにチェック
3.OculusIntegration 31導入
1.アセットストアからOculusIntegration31をインポート
※インポート後にアップグレードなど聞かれるので良しなに
4.ビルド
1.sampleframework/passthoughから適当なシーンを開く
(ARシーンが分かりやすくお勧め)
2.OVRCamera→Experienceにチェック
→passthoughCallibrationチェック
→passthroughにチェック
3.ビルド
※XRmanegimentがねえよとか言われるかもなので
パッケージマネージャから入れる
5.Quest2にインストール&Quest環境設定
・adb shell setprop debug.oculus.experimentalEnabled 1
※Quest2を起動するたびにこのコマンドが必要です。