Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

9
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Unity】Pico Neo 3 VRアプリ開発 (1)

Last updated at Posted at 2022-05-21

最新版のSDKに対応した記事を投稿しました。
本記事は内容が古くなっていますので、こちらを参照してください。

はじめに

Pico Neo 3でのVRアプリ開発方法をまとめました。

開発イメージが分かりやすいよう、手順をステップごとに詳細に記載しています。

今回の開発環境

  • Unity 2021.3.0f1
  • Pico Unity XR SDK v2.0.4
    • UnityのXR プラグインフレームワークに対応しています。

SDKをDownload & UnityにImportする

  • SDK入手先

    • https://developer.pico-interactive.com/sdk
      image.png
      何種類かありますが、「Unity XR SDK」をDownloadしてください。
      Zipファイルになっているので解凍します。
      image.png
      PackageManagerで取り込める形になっています。
  • Unityプロジェクトのpackageフォルダに解凍したフォルダをコピーして取り込む
    image.png

  • PackageManagerでPico XR Pluginがインポートされている事が確認できます。
    image.png

  • ダイアログが表示されるので、必要情報を入力してApply → Close
    image.png
    App IDはとりあえず不要なのでチェックを外します。

Unityプロジェクト設定

  • Project Settings > XR Plug-in Management > Android PicoXRにチェック
    image.png

  • Project Settings > Player設定

    • Company Name & Product Name
      • 作りたいアプリに従って入力してください
        image.png
    • Minimum API Level
      • API Level 29
        image.png

カメラをVR対応する

  • このあたりはUnity XR Plugin標準の手順です。
    • Hierarchyで右クリック > XR > Room-Scale XR Rigを選択してください
      image.png

ビルド

  • Pico Neo 3 ProをPCにUSB接続してください。
    • UnityのメニューにPXR_SDKがあるので、Build Tool > Build And Runを選択。
      image.png

    • ビルド時にダイアログが出る場合、

      • 動作確認したいだけなら「Ignore, Don't reminde again」でOKです
        image.png

動作確認

VRで動きました!
(コントローラーは表示されていませんが、Rayが出ています)
first vr scene

コントローラーモデルを表示する

  • HierarchyのXR Rig > Camera Offset > LeftHand ControllerのXR Controller Model PrefabにPicoのコントローラーモデルを設定します。

    • コントローラーモデルは Packages > PicoXR Plugin > Assets > Resources > Prefabsの中にあります。
    • LeftHand Controller / RightHand Controllerにそれぞれ設定してください。
      image.png
  • コントローラーが表示されました。

controller

おわりに

CEDEC2021でSTYLYをPico Neo 3に対応した話をしましたが、当時の問題のほとんど修正されており、
本体、SDKともに改善が進んでいる印象を受けました。
今回は自分のアップデートを兼ねてPico Neo 3でのVRアプリ開発方法をまとめました。

次回はPico Neo 3でUnityの「XR Interactions Toolkit」のサンプルを動かす方法について説明します。

9
6
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
9
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?