Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
XR Interaction toolkit & XRHands & Passthrough...
Search
donabe
June 01, 2023
Technology
0
140
XR Interaction toolkit & XRHands & Passthrough API で MR 開発
donabe
June 01, 2023
Tweet
Share
More Decks by donabe
See All by donabe
現実 VS バーチャルのマルチプレイゲームを作ろう
donabe3
0
70
Speech to Textureで 思い通りに世界を改変しよう
donabe3
0
11
院試までなにやったか
donabe3
0
16
XRの魅力を語りたい
donabe3
0
18
IVRC、Iwaken Lab.で 見える世界が圧倒的に広がった一年 ~VRで非日常を創造して~
donabe3
0
7
最近実感したこと
donabe3
0
16
IVRCの経験を喋る
donabe3
0
18
xR分野紹介
donabe3
0
16
VRにおけるUI設計
donabe3
0
140
Other Decks in Technology
See All in Technology
JAWS-UG 事務局 の「これまで」から みんなで「ここから」を考えよう
miu_crescent
2
110
Graph Database と Generative AI の素敵な関係
oracle4engineer
PRO
16
3.2k
Automated Tests Now and Future @ SQiP Workshop Special Lecture 2024
teyamagu
PRO
1
250
tenntennはなんでnewmoにnew社したの? - YAPC::Hakodate 2024
tenntenn
PRO
0
440
Oracle Cloud Infrastructure:2024年10月度サービス・アップデート
oracle4engineer
PRO
0
110
Perlで始めるeBPF: 自作Loaderの作り方 / Getting started with eBPF in Perl_How to create your own Loader
takehaya
1
1.1k
LINEヤフー新卒採用 コーディングテスト解説 アルゴリズム問題編
lycorp_recruit_jp
0
14k
テクニカルライターのチームで「目標」をどう決めたか / MVV for a Team of Technical Writers
lycorptech_jp
PRO
3
140
Applied NLP with LLMs: Beyond Black-Box Monoliths
inesmontani
PRO
0
150
YAPC::Hakodateの映像記録を支える技術
godan
4
400
ラブグラフ紹介資料 〜プロダクト解体新書〜 / Lovegraph Product Deck
lovegraph
0
14k
CData Virtuality 日本ローンチイベントのKeynote
cdataj
0
410
Featured
See All Featured
It's Worth the Effort
3n
183
27k
Practical Orchestrator
shlominoach
186
10k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Writing Fast Ruby
sferik
626
60k
[RailsConf 2023] Rails as a piece of cake
palkan
49
4.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
Making the Leap to Tech Lead
cromwellryan
131
8.9k
How to Think Like a Performance Engineer
csswizardry
17
1k
How to train your dragon (web standard)
notwaldorf
87
5.6k
Documentation Writing (for coders)
carmenintech
65
4.4k
Atom: Resistance is Futile
akmur
261
25k
Transcript
XR Interaction toolkit & XRHands & Passthrough API で MR
開発 土鍋 2023/06/01 Unity/VR開発 ◯◯はいいぞ選手権
自己紹介 名前: 土鍋 (渡辺雄大) 学年: 会津大学4年 所属: A-PxL元代表、Zli、Iwaken Lab、UT-virtual 興味:
XR、Unity、ゲーム、CG、映像 趣味: ゲーム、アニメ、鉄道旅行、Vtuber Twitter: @donadonadonabe Blog: https://donabenabe.hatenablog.com 近況: 院試の勉強に追われてる。現地行きたかったなあ。 2
今までの作品 3
「自宅でも遭難がしたい!」全国の新聞に載ったよ! 福島、青森、秋田、山形、東京、長野、愛知、岐阜、沖縄 4
今回やること クロスプラットフォームな MRアプリ開発をするための 環境構築の手法の提案 5
目次 2. 自己紹介 6. 目次 7. 今回の構成の解説 12. XR Handsの機能拡張
18. パススルーを使えるようにする 26. まとめ 6
OpenXRとは OpenXRにAppleくんが参画してないのが不穏 7
UnityでOpenXRを使ったクロスプラットフォームMR構成 OpenXR XR Interaction Toolkit XR Hands Meta Quest2 Meta
Quest Pro VIVE XR Elite Passthrough API Pico4 XR基本機能 ハンドトラッキング パススルー パススルー以外はこの構成で開発できる 8
UnityでOpenXRを使ったクロスプラットフォームMR構成 OpenXR XR Interaction Toolkit XR Hands Meta Quest2 Meta
Quest Pro VIVE XR Elite WAVE SDK Passthrough API PICO Unity XR SDK Pico4 その他、HololensなどのMRデバイスなどもやろうと思えば対応できる 各デバイス向け開発用SDKを使わざるをえない→ 9
UnityでOpenXRを使ったクロスプラットフォームMR構成 OpenXR XR Interaction Toolkit XR Hands Meta Quest2 Meta
Quest Pro VIVE XR Elite WAVE SDK Passthrough API PICO Unity XR SDK Pico4 Unityさんお願いします… 10
本題に戻ります 11
XR Hands 今年1月にプレ版公開、3月に正式リリースされたXR Interaction Toolkitの ハンドトラッキング用ライブラリ。 現時点で手のトラッキングとその描画はできる。 ただ現状のXR Handsには手のポーズを簡単に取得するものがない →自作しました
12
とりあえずサンプルを見る 結構いい感じ ただ、拡張性がない。 物を持てていますが、これは Meta(Quest)の独自のものなので クロスプラットフォームではない 13
指の関節データの取得 手のデータにアクセスする XRHandSubsystemを取得 左右どちらの手か 手のどの関節のデータを取るか 14
指の関節のID 15
指の開き具合の取得 やってることは単純 指の根元と先の距離から 指が開いてるか閉じてる か判断する。 16
手のポーズの推定 どの指が開いているかで 手のポーズを推定している 17
パススルーできるようにする PassthroughAPIはOculus Integrationを導入することで使える 18
余談 Oculus IntegrationはXR Interaction toolkitと立ち位置的には同じ なので干渉が起きてビルドがうまくいかなくなりがちっぽい 土鍋は1/3でビルドが通らなくて、1/10くらいでPCが落ちた 開発しててめっちゃ萎えるので、ここらへんうまい解決ないのかな… 19
もろもろ対応(細かい作業なので割愛) カメラにパススルーレイヤーの反映設定 導入時のエラーの解消 描画方式設定変更 AndroidManifestの修正 Questに対してパススルーを使うためのadbコマンド実行 20
21
LT用にコンテンツ作らなきゃな 22
23 !
フォースを使えるようにする 手をオブジェクトにかざすと、 空中に浮かぶようにしたい UniRxで非同期に手のポーズが変わ ると処理するようにした 手と距離を一定に保ちながら浮かぶ 24
完成したもの 1. 手を開いた状態でオブジェクトに 向ける 2. オブジェクト空中浮遊させる 3. 拳を握りしめると手につかむ ※パススルー映像の録画がうまくいか なかったので、HMDのレンズに直接ス
マホをつけて撮影→ 25
まとめ 今回作ったものはパススルーである必要ないので、平面認識や3Dスキャ ンなどと組み合わせることでよりMRアプリらしくなる。 本来想定されていない組み合わせのため、少しでも設定ミスるとビルド に失敗する。 今後、対応が進めばクロスプラットフォームなMRアプリの開発がよりし やすくなると思われますが、現状はデバイスごとの開発のほうが現実的 26
ご清聴ありがとうございました 27