3. iOS ARKit 介紹 2018年年3⽉月1⽇日
• ARConfiguration (場景偵測)
1. ARWorldTrackingConfiguration
精準AR體驗,可跟蹤設備⽅方向及位置,允許平⾯面偵測(如地⾯面、桌⾯面)
和碰撞試驗。
Provides high-quality AR experiences that use the rear-facing camera precisely track a device's position
and orientation and allow plane detection and hit testing.
可以偵測到平⾯面後把3D物件加上去
參參考網址
偵測到平⾯面後將船加入平⾯面
iOS ARKit 介紹 3
4. iOS ARKit 介紹 2018年年3⽉月1⽇日
2. AROrientationTrackingConfiguration
可跟蹤設備⽅方向的基本AR體驗。
Provides basic AR experiences that use the rear-facing camera and track only a device's orientation.
參參考網址
3. ARFaceTrackingConfiguration
偵測⼈人臉,需使⽤用iPhoneX
Provides AR experiences that use the front-facing camera and track the movement and expressions of the
user's face.
參參考網址
官⽅方Sample Code效果
可搭配⼀一些回傳參參數實作出以下效果
• Looking at the user
• reactToTap
• reactToPositionChange
• lacing the object on a horizontal plane
• Moving the head and body to face the user
請參參考網址
⽀支援的3D物件格式
• dae
• obj
• scn
iOS ARKit 介紹 4