Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UnityでVR開発

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

 UnityでVR開発

Avatar for akatsukinewgrad

akatsukinewgrad

March 05, 2021
Tweet

More Decks by akatsukinewgrad

Other Decks in Programming

Transcript

  1. Web上に沢⼭の知⾒があります • FRAME SYNTHESIS Unity + Oculus Quest2 開発メモ https://framesynthesis.jp/tech/unity/oculusquest/

    • Oculus公式 https://developer.oculus.com/documentation/unity/book-unity- gsg/ • Unity公式 https://docs.unity3d.com/ja/2020.2/Manual/VROverview.html
  2. 実⾏環境 • Windows 10 64bit • GPU: GeForce GTX 970

    • Oculus Quest • Oculus Link ケーブル • Unity 2020.2.4f1
  3. 開発準備③ 設定の変更 • Build Settings • Platform を Android に

    • Texture Compression を ASTC に • Project Settings > Player > Other Settings > Rendering • Color Space を Linear に • Graphiscs APIs の Vulkanを削除
  4. 開発準備③ 設定の変更 • Build Settings • Platform を Android に

    • Texture Compression を ASTC に • Project Settings > Player > Other Settings > Rendering • Color Space を Linear に • Graphiscs APIs の Vulkanを削除 > Player > Other Settings >Identification • Minimul API Level を Android 6.0 に
  5. 開発準備④ Oculus Integration • アセットストアから Oculus Integration を DL &

    Import 2020.1+ では,アセットストアから のDL & Import ⽅法が変わったよう ですので,2019.xでの情報と画⾯が やや異なるかもしれません.
  6. 開発準備⑤ XR Plugin Management • Window > Package Manager >

    Unity Registry から, XR Plugin Management を Install
  7. 開発準備⑤ XR Plugin Management • Edit > XR Plug-in Management

    > Plug-in Providers の Oculus にチェックを⼊れる (Standalone/Android の両⽅)
  8. シンプルなVRシーンを作ってみる! • OVRPlayerController > OVR CameraRig > TrackingSpace > LeftHandAnchor

    > LeftControllerAnchor に Oculus > VR > Prefabs > OVRControllerPrefabを配置 • 右⼿と左⼿,それぞれ L Touch/R Touch に設定
  9. シンプルなVRシーンを作ってみる! • OVRPlayerController > OVR CameraRig > TrackingSpace > LeftHandAnchor

    > LeftControllerAnchor に Oculus > VR > Prefabs > OVRControllerPrefabを配置 • 右⼿と左⼿,それぞれ L Touch/R Touch に設定 Build And Run!