轉載請注明出處
Apple原文地址:https://developer.apple.com/documentation/arkit
ARKit
- Integrate iOS device camera and motion features to produce augmented reality experiences in your app or game.
- ARKit 將 iOS 設備的攝像頭和設備動作檢測 (Motion) 功能,集成到您的應用或者游戲當中,從而為用戶提供增強現實體驗。
Overview
- Augmented reality (AR) describes user experiences that add 2D or 3D elements to the live view from a device's camera in a way that makes those elements appear to inhabit the real world. ARKit combines device motion tracking, camera scene capture, advanced scene processing, and display conveniences to simplify the task of building an AR experience.
- 所謂的增強現實 (Augmented Reality, AR),指的是向設備攝像頭產生的實時動態視圖中,添加 2D 或者 3D 元素,然后用某種方法讓這些元素看起來就處于現實世界當中,所產生一種用戶體驗。ARKit 提供了設備動作追蹤、相機場景捕獲和高級場景處理,并讓 AR 元素的展示變得極為便利,從而大大簡化了建立 AR 用戶體驗的工作難度。
Topics
First Steps
- 探索 AR 的概念、特性,以及了解構建優秀 AR 場景的最佳實踐。
1.ARSession類
- A shared object that manages the device camera and motion processing needed for augmented reality experiences.
- 這是一個單例, 是 ARKit 的核心類,用于控制設備攝像頭,處理傳感器數據,對捕獲的圖像進行分析等等。
Configurations
2.ARSessionConfiguration類
- A basic configuration that tracks a device's orientation only.
- 跟蹤設備方向的一個基本配置, 在運行時,需要指定AR運行的配置
3. ARWorldTrackingSessionConfiguration類
- ARSessionConfiguration的子類
- A configuration that tracks a device's orientation and position, and that detects real-world surfaces seen by the device camera.
- 配置跟蹤設備的方向和位置,以及檢測設備攝像頭所看到的現實世界的表面
Standard Views
4. ARSCNView類
- A view for displaying AR experiences that augment the camera view with 3D SceneKit content
- 用來增強相機通過 3D SceneKit 所捕捉到的內容并展示 AR 效果的一個 view
5. ARSKView類
- A view for displaying AR experiences that augment the camera view with 2D SpriteKit content
- 用來增強相機通過 2D SpriteKit 所捕捉到的內容并展示 AR 效果的一個 view
Real-World Objects and Positions
6.ARAnchor類
- A real-world position and orientation that can be used for placing objects in an AR scene.
- 真實世界的位置和方向, 用于在一個AR場景中放置一個物體
7.ARPlaneAnchor類
- Information about the position and orientation of a real-world flat surface detected in an AR session.
- 在一個AR Session 會話中檢測一個真實世界中平面的位置和方向的相關信息
8.ARHitTestResult類
- Information about a real-world surface found by examining a point in the device camera view of an AR session.
- 在一個AR Session會話中通過檢測相機視圖中的一個點來獲取真實世界中表面的相關信息
Camera and Scene Details
9.ARFrame類
- A video image and position tracking information captured as part of an AR session.
- 捕獲一個視頻圖像和位置追蹤信息作為一個AR 會話的一部分。
10. ARCamera類
- Information about the camera position and imaging characteristics for a captured video frame in an AR session.
- 在一個AR會話中攝像機的位置和成像特征信息為捕獲視頻幀
11.ARLightEstimate類
- Estimated scene lighting information associated with a captured video frame in an AR session.
- 在一個AR會話中估計場景照明信息關聯到一個捕獲的視頻幀
轉載請注明出處