ARKit學(xué)習(xí)-1

轉(zhuǎn)載請注明出處
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 設(shè)備的攝像頭和設(shè)備動作檢測 (Motion) 功能,集成到您的應(yīng)用或者游戲當(dāng)中,從而為用戶提供增強(qiáng)現(xiàn)實(shí)體驗(yàn)。

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.
  • 所謂的增強(qiáng)現(xiàn)實(shí) (Augmented Reality, AR),指的是向設(shè)備攝像頭產(chǎn)生的實(shí)時動態(tài)視圖中,添加 2D 或者 3D 元素,然后用某種方法讓這些元素看起來就處于現(xiàn)實(shí)世界當(dāng)中,所產(chǎn)生一種用戶體驗(yàn)。ARKit 提供了設(shè)備動作追蹤、相機(jī)場景捕獲和高級場景處理,并讓 AR 元素的展示變得極為便利,從而大大簡化了建立 AR 用戶體驗(yàn)的工作難度。

Topics
First Steps
  • 探索 AR 的概念、特性,以及了解構(gòu)建優(yōu)秀 AR 場景的最佳實(shí)踐。

1.ARSession類
  • A shared object that manages the device camera and motion processing needed for augmented reality experiences.
  • 這是一個單例, 是 ARKit 的核心類,用于控制設(shè)備攝像頭,處理傳感器數(shù)據(jù),對捕獲的圖像進(jìn)行分析等等。

Configurations
2.ARSessionConfiguration類
  • A basic configuration that tracks a device's orientation only.
  • 跟蹤設(shè)備方向的一個基本配置, 在運(yùn)行時,需要指定AR運(yùn)行的配置
3. ARWorldTrackingSessionConfiguration類
  • ARSessionConfiguration的子類
  • A configuration that tracks a device's orientation and position, and that detects real-world surfaces seen by the device camera.
  • 配置跟蹤設(shè)備的方向和位置,以及檢測設(shè)備攝像頭所看到的現(xiàn)實(shí)世界的表面

Standard Views
4. ARSCNView類
  • A view for displaying AR experiences that augment the camera view with 3D SceneKit content
  • 用來增強(qiáng)相機(jī)通過 3D SceneKit 所捕捉到的內(nèi)容并展示 AR 效果的一個 view
5. ARSKView類
  • A view for displaying AR experiences that augment the camera view with 2D SpriteKit content
  • 用來增強(qiáng)相機(jī)通過 2D SpriteKit 所捕捉到的內(nèi)容并展示 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.
  • 真實(shí)世界的位置和方向, 用于在一個AR場景中放置一個物體
7.ARPlaneAnchor類
  • Information about the position and orientation of a real-world flat surface detected in an AR session.
  • 在一個AR Session 會話中檢測一個真實(shí)世界中平面的位置和方向的相關(guān)信息
8.ARHitTestResult類
  • Information about a real-world surface found by examining a point in the device camera view of an AR session.
  • 在一個AR Session會話中通過檢測相機(jī)視圖中的一個點(diǎn)來獲取真實(shí)世界中表面的相關(guān)信息

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會話中攝像機(jī)的位置和成像特征信息為捕獲視頻幀
11.ARLightEstimate類
  • Estimated scene lighting information associated with a captured video frame in an AR session.
  • 在一個AR會話中估計(jì)場景照明信息關(guān)聯(lián)到一個捕獲的視頻幀

轉(zhuǎn)載請注明出處

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容