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
SwiftでARKit3を使うには
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
drama
December 08, 2019
Programming
940
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SwiftでARKit3を使うには
drama
December 08, 2019
More Decks by drama
See All by drama
FACEBREAK@ヒーローズリーグ 2025 予選
1901drama
0
75
なごミュ@SPAJAM2025 第二回予選
1901drama
1
250
ALVAS@enXross HACKATHON
1901drama
0
210
HELP@Qiita Hackathon #1 本選
1901drama
0
460
ツナカン@Qiita Hackathon #1 予選
1901drama
1
1k
AR市場とVPS技術のサービス化@XR Kaigi 2022
1901drama
0
640
ARコンテンツの考え方 - クリエイターでなくても「おもしろい」ARコンテンツを制作したい!
1901drama
0
1.2k
ストア評価「2.4」だったCOCOARアプリを1年で「4.4」になんとかした方法@Cloud CIRCUS Meetup #2
1901drama
0
810
AR事業のマネタイズ -まだ存在しない価値を創造していくには?@XR Kaigi 2021
1901drama
0
2.5k
Other Decks in Programming
See All in Programming
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
0
220
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
730
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
2k
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
3
1.3k
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
890
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
110
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
540
Composerを使ったサプライチェーン攻撃の様子を眺めてみる #phpstudy
o0h
PRO
2
240
さぁV100、メモリをお食べ・・・
nilpe
0
140
運用エージェントは "作る" から "育てる" へ - 記憶と自己進化の3層設計パターン / self-evolving-agents-three-layer-agent-design
gawa
12
3.6k
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
780
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
200
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
320
Music & Morning Musume
bryan
47
7.2k
Crafting Experiences
bethany
1
180
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
330
Measuring & Analyzing Core Web Vitals
bluesmoon
9
860
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
160
Agile that works and the tools we love
rasmusluckow
331
21k
Mobile First: as difficult as doing things right
swwweet
225
10k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
160
Transcript
xR Tech Tokyo #18 @ ソフトバンク Drama(@1901drama) Swiftで ARKit3 を
使うには
None
機能 対象 Coaching UI ・環境データ取得用のアニメーションを表示させる A9 以上 (iPhone 6s/SE) People
Occlusion 2D/3D ・ユーザーの身体を、 3Dオブジェクトの手前に表示させる ・ユーザーの身体と 3Dオブジェクトの前後関係を、反映し表示させる A12 Bionic以上 (iPhone xR/xS) Motion Capture 2D/3D ・ユーザーの身体 /関節の位置を画面上の位置座標で取得出来る ・ユーザーの身体 /関節の位置を空間座標で取得出来る A12 Bionic以上 (iPhone xR/xS) Multiple Face Tracking ・3人までの顔の場所と表情を同時追跡する A12 Bionic以上 (iPhone xR/xS) Simultaneous Front and Back Camera ・手前側のカメラと背面側のカメラで同時に ARを利用出来る A12 Bionic以上 (iPhone xR/xS) Collaborative Sessions ・他のユーザーとの AR体験の共有を補助する A9 以上 (iPhone 6s/SE) ARKit3で追加されたメイン機能
Coaching UI People Occlusion 2D/3D Motion Capture 2D/3D
Multiple Face Tracking Simultaneous Front and Back Camera Collaborative Sessions
Swiftで開発するときのメリット・デメリット • iOS固有の機能を複合して組み込み出来る (UIKit, Depth等のセンサー, 認証系...) • Buildが早い • Appleのドキュメントを直接解釈出来る
• iOS全般の知識が必要 • 3Dの理解が難しい • Androidへの移行が困難(開発工数がかかる) • エンジニアが少ない(転職や情報共有が難しい) 今日はこちらの人向け
ARConfiguration
ARWorldTrackingConfiguration ARBodyTrackingConfiguration ARImageTrackingConfiguration AROrientationTrackingConfiguration ARPositionalTrackingConfiguration ARObjectScanningConfiguration ARFaceTrackingConfiguration • Plane Detect
• Human Detect • Motion Capture • Face Detect • Image Detect • Image Tracking • Face tracking • Position Tracking • Object Detect • Object Scan ARKit3で検知するモードと対象 • Orientation Tracking • WorldMap Export/Import • Collaborative Session • Simultaneous Front and Back Camera • People Occlusion
Depth
Depth取得条件に制限がある ②Simultaneous Front and Back Camera + ①RearCameraのDepthで自分を3D化 = ③depthデータを相手に送れば
3Dでコミュニケーションが 出来るのでは?
Depth取得条件に制限がある Simultaneous Front and Back Camera でも、depthは取得出来ない。 (FaceTrackingだけの場合は、従来通り取得出 来る) Appleさんに改善依頼しました!
その他
• Coaching UIは普通のUIView扱いなので、そのままでは表示がズレます。 • People Occlusion 3DとPlane Objectを併用するとまれにバグります。 • Collaborative
Sessionsは、同時5台くらいが限界かもしれません。 • RealityKitの出来ることに制限があり、 SceneKitから移行出来ない など... その他
ARKit 3.0のサンプルコード集 『ARKit-Invader』 ソースコード(GitHub/Qiita) サンプルコードあります!
ご清聴 ありがとう御座いました。 xR Tech Tokyo #18 @ ソフトバンク Drama(@1901drama)