转载请注明出处
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会话中估计场景照明信息关联到一个捕获的视频帧
转载请注明出处