LoginSignup
1
1

Quest2でPassThroughするための手順

Last updated at Posted at 2023-08-17

Quest2で単純なPassThroughを実行するための手順です。
手順を実施するのがめんどくさい人はこちらからgit cloneしてもらえればすぐ試せます。

前提

  • Windows 11
  • Unity 2022.3.5f1
  • Oculus Integration v55
  • Meta Quest 2 v54.0.0.155….(略)

手順

  1. Unityプロジェクトを新規作成
  2. Oculus Integrationをインストール
  3. Build SettingsでAndroidにSwitch Platformします
  4. Project Settingの変更
    1. Player/Other Settingsを3ヵ所設定
      1. Rendering/Color SpaceをLinearに設定
        2023-08-17_23h13_03.png
      2. Configration/Scripting BackendをIL2CPPに設定
      3. Configration/Target ArchitecturesをARM64のみにチェック
        2023-08-17_23h13_34.png
    2. XR Plugin-in Management
      1. Install XR Plugin Managmentボタンを押します
      2. Oculusにチェック
        2023-08-17_23h18_58.png
  5. Window → Rendering → Lighting を開いて、Enviromentを選択し、Skybox MaterialとSunSourceに設定されている設定を削除(選択してdelキーを押します)
    2023-08-17_23h22_14.png
  6. OVRCameraRig
    1. Oculus/VR/Prefabs/OVRCameraRigをHierarchyに追加
    2. Tracking/Tracing Origin TypeにStageを設定
      2023-08-17_23h26_00.png
    3. Quest Features/General/PassThrough SupportをSupportedに設定してから、Enable PassThroughにチェック
      2023-08-17_23h29_07.png
    4. OVRPassThroughLayerをアタッチして、PlacementをUnderlay、Composition Depthを1に設定
      2023-08-17_23h30_53.png
  7. CenterEyeAnchorの設定
    スクリーンショット 2023-08-17 233523.png
  8. OVRContollerPrefabの設定
    1. 左手用にOVRContollerPrefabを入れて、ControllerにL Touchを設定
      2023-08-17_23h38_13.png
    2. 右手用にOVRContollerPrefabを入れて、ControllerにR Touchを設定
      2023-08-17_23h38_43.png
  9. 実行
    1. Oculus QuestとPCをつなぎます
    2. Build Settingsを開きます
    3. Add Open Scenes(1回目のみ)
    4. Build And Run
      1. 1回目のビルドは結構時間がかかりますが、2回目からは早くなります
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1