ARKit開發實戰

ARKit開發實戰

《ARKit開發實戰》是2018年1月電子工業出版社出版的圖書,作者是員凱。

基本介紹

  • 中文名:ARKit開發實戰
  • 作者:員凱
  • ISBN:9787121334702
  • 頁數:300頁
  • 定價:79元
  • 出版社:電子工業出版社
  • 出版時間:2018年1月
  • 開本:16開
內容簡介,圖書目錄,

內容簡介

新書根據ARKit、iOS系統的特點,重點介紹AR開發的基礎知識,ARKit的特點、ARKit的使用,藉助Arkit和Unity 3D開發小遊戲,全面展示ARKit的優缺點。

圖書目錄

第一部分基礎知識
第1 章繪製圖形.................….................….........….........…....................................................2
1.1 代碼編寫.........................................................................................…...............… .................2
1.2 CPU 與GPU 互動................….................................….........….......................................4
1.3 狀態準備...............…..............................….......…............................….......…..................5
1.4 坐標轉換......................................................................................... .............5
1.5 像素計算..............…................................................................….................… ................6
1.6 硬體顯示..........……....................................................................................….......… .......6
第2 章固形學基礎.........…........….........…… ..................................................................8
2.1 笛卡兒坐標系….......….......................................................….......................................8
2.2 坐標壁間............….........….........….........….........….........….........….........…...................11
2.3 坐標系轉換……...................................................................................................................12
2.4硬體設備..........……..........................................................………................…................13
第3 章數學基礎.........................….........….........….................................… .................16
3.1 向量........….........….........….........….........….........….........….........….........…...................16
3.2 矩陣...........................................................................................................................…20
3.2.1 矩陣的定義...................................................................… ................................20
3.2.2 基本運算..............................................................................................................21
3.2.3 運算律……….........…….......................................…….........… ...........................24
3.2.4矩陣的類型........….........….........….........….........….........….........…...................27
第4 章增強現實基礎................……...............................................................… ..........31
4.1 概念..............................................................................................................................31
4.2 結構組成....................…............…............…............…..........…........… ........................33
4.2.1 系統結構........................….........….........….........….........….........…...................33
4.2.2 關鍵要點..........…….......................................….........… ....................................33
4.2.3 SLAM.......... ……………………………………………………………..............................34
4.3 發展歷史..........…….......................................…................…........…….........… ...............36
4.4 發展現狀.........................................................…..........................................................39
4.4.1 AR 硬體H… ......................................................................................................39
4.4.2 AR 軟體………………………………………………………………..……..........42
第二部分ARKit 內容
第5 章ARKit 簡介.........….........….........…........…….......… ...........................................47
5.1 ARKit 概述..........…….........…….........…….........…….......................................…… .........47
5.2 ARKit 結構..............................….........….............................................….........…..........49
5.3 ARKit 使用............….........….........….........….........….........….........….........…................50
第6 章第一個AR 套用.............….................….................….................… ...................52
6.1 SceneKit........................................................................................................................52
6.2 SpriteKit. .......................................................................................................................56
6.3 Metal......................…..............................................................................….........….......60
第7 章世界跟蹤.................….................….........…........….........…..........… .................65
7.1 跟蹤概述..........…….........……....................................................................................… 65
7.2 模組結構...................................………………………………………………………………....66
7.3 運行跟蹤.........…….......….........…...................................….......….....................… .........67
7.4 ARConfiguration 類.........….......................…...........................…….........…… ...............69
7.4.1 兩者區別............….........….........….........….........….........................… ...............71
7.4.2 使用示例............….........….........….........….................................…...................73
7.4.3 屬性說明............................................…..................................................................74
7.5 ARSession 類...............…….....................................................................….......… ........7當
7.5.1 持有的硬體….......….......….........…..............................…..…................…..........75
7.5.2 持有的數據.....................................….........…......................................… .........77
7.5.3 具備的能力…….......................................…........................................… ........79
7.5.4 生命周期....…...........................….......................................................................80
7.5.5 處理輸出.....………………………………………………………………........… ...............82
7.5.6 跟蹤狀態..........…..........……........................…….........…….........….......… ........84
7.5.7 中斷和出錯…….........…….........…….........…….......................................… .........86
7.6 ARFrame 類...............................................................................................................88
7.6.1 包含的內容......................................................................................................89
7.6.2 獲取方式…………………………………………………………………………………….90
7.6.3 屬性和方法說明........................…...................................................................91
7.7 ARAnchor 類.........…...............................................................................…...................93
7.8 ARCamera 類...............…… ..........................................................................................93
7.9 實例演示..........….........…….........…….........…….........…….........…….........…….........…… 98
7.9.1 新建項目..........…….....................… ..................................................................98
7.9.2 開始編碼....…...........................……..........................................................…...................99
7.9.3 運行效果......................................................…...............….............................105
7.9.4 出錯原因........................................….......… ...................................................106
第8 章場景理解.................….........….................….........….........…........… ................108
8.1 平面檢測......................................….......….................................….........….................108
8.2 ARPointCloud 類.......….............................................................................…..............109
8.3 ARPlaneAnchor 類...................……… ........................................................................110
8.4 hit-test ..........................….........................….................…............................................111
8.4.1 概述................................................................................................................111
8.4.2 功能使用........................….........…...........................................................… 114
8.4.3 ARHitTestResult類….......................................................................……........114
8.5 ARLightEstimate 類.........…................….........….........….........….........….................… 116
8.6 實例..............…........…................................…….........…….........… ...............................116
8瓜1 實例................….........….........….........….........….........….........…·…·…… ......117
8.6.2 實例二...........................…….......................…........................................................125
第9 章幾何渲染....................................… ................................................................130
9.1 SceneKit..................................................................................................................... ... .130
9.1.1 SceneKit 概述.........…........…….........…........................… ...............................130
9.1.2 ARSCNView...............................................…..........................…...................133
9.1.3 ARSCNViewDelegate ......…........................….............................................…135
9.2 SpriteKit.........................................................................................................….......…136
9.2.1 SpriteKit 概述…...........................…….............................…..........................136
9.2.2 ARSKView..….......….........….........…...................…........................................137
9.2.3 ARSKViewDelegate................….........….........….........…................................138
9.3 實例......................….........… .......................................................................................139
9.3.1 實例................….........….........….........….........….........….........….................139
9.3.2 實例二……...................................................................................................150
第10 章人臉跟蹤.............…........….........….........…......................….........… .............155
10.1 概述.....................….......................…...................…........…........…… .........................155
10.2 模組使用.......….................….......…........................................…................… ............156
10.3 各類說明.................................................................… ..............................................160
第11 章遊戲.........….........…........….........….........…..................................… .............165
11.1 數字排列..................................................…...……...…… ..........................................165
11.1.1 新建項目................….........….........….........….........…...................................166
11.1.2 添加視圖....................................................................................................166
11.1.3 添加數字…................….......................…................…...................................168
11.1.4 點去數字......................................................................................................169
11.1.5 調用載入................….........….......................................................................171
11.1.6 狀態處理.........….........…................….........….........….........….........…...........172
11.1.7 運行效果…...............................….................................................................174
11.2 元素操作.......….........…...............…..........…… ..........................................................175
11.2.1 新建項目......................................................................................................175
11.2.2 添加視圖....................................................................................................175
11.2.3 添加手勢...............................….................................….............................… 177
1 1.2.4調用載入................…...................................................................................182
11.2.5 添加平面....….........….........….........…................................................…........183
11.2.6 運行效果............……............................................…................................185
11.3 捕捉萌寵...............................................….......................................……......187
11.3.1 新建項目................….........….........….........….........….........….........…...........187
11.3.2 添加元素............................................................................….......................187
11.3.3 添加音效.....................................................................................…...........… 191
11.3.4 添加模型......................….............................................................................191
11.3.5 碰撞邏輯……........….........….........................................................…............194
11.3.6 粒子效果.............................…… ................................................................195
1 1.3.7 調用載入....................................................….........…...................................195
11.3.8 提示信息.......................................…..................................................................196
11.3.9 運行效果....................................................................................................198
第三部分ARKit 在Unity 中的套用
第12 章Unity 環境.....................................….........….................….........… ................203
12.1 準備環境………………………………………………………………………..........203
12.2 環境說明……....................................................………..……..……..……..……… .204
12.3 Hello Unity .......................................................…..................…...........….........…......207
第13 章使用ARKit. ..................................................................................................209
13.1 接入外掛程式.......…........................…….........................………........................… .209
13.2 遠程調試…...............................…….................… ......................................................210
13.3 結構說明................….........….........….........….........….........….........….........…...........214
13.4 使用操作……..…............................ .………...........……..…………………………...215
第14 章實例演示.............….........…........…..................................….........… .............218
14.1 管理跟蹤................................................................................................................218
14.2 小遊戲..............…...............…..........…….........…….........……...............................… ...223
第四部分其他SDK 的使用
第15 章EasyAR SDK.... ...... ...... ...... ..... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ... 230
15.1 開發環境準備….....................................................................................................230
15.2 Easy AR Basic 功能…………..................… ..........................................................232
15.2.1 圍片檢測...........................…...........................................................… ....232
15.2.2 播放視頻.......…..............................…...........................................................240
15.2.3 跟蹤多個目標....................................................……......................…...........245
15.2.4 二維碼栓測........................…....… ................................................................248
15.2.5 雲識別....................….........….........….........….........….........….........…...……..…....….…...252
15.3 EasyAR PrO 功能.……............................................................................................................257
15.3.1 識別3D 物體.………..……...…...........................................................................................258
15.3.2 錄屏....................................….......................................................................263
15.3.3 SLAM..........….......…..............................................…...........................……….267
第16 章Vuforia SDK ...... ...... ..... ....….........….................…........................................272
16.1 開發環境準備.........................…................................….........……… .........................272
16.2 Image Targets........….........….........….........…·…........…........…........…........…........276
16.3 Cylinder Targets.…........….........….........….........….........….........….........….................278
16.4 Multi Tatgets....................................….........….........….........….........….........…..............280
16.5 User Defined Targets ................................................................................................281
16.6 CloudRecognition..…..................….........……...........................................................282
16.7 Virtual Buttons.................................................................….....283
16.8 Text Recogniti.......................................................................................................284
16.9 VuMark....……................…........................…..................….........….........…..............285
16.10 Object Recognition........….........….........….........….........….........….........…..............285

相關詞條

熱門詞條

聯絡我們