书籍详情

ARKit开发实战

ARKit开发实战

作者:员凯 著

出版社:电子工业出版社

出版时间:2018-01-01

ISBN:9787121334702

定价:¥79.00

购买这本书可以去
内容简介
  新书根据ARKit、iOS系统的特点,重点介绍AR开发的基础知识,ARKit的特点、ARKit的使用,借助Arkit和Unity 3D开发小游戏,全面展示ARKit的优缺点。
作者简介
  2013.6-2016.6中国电信股份有限公司太原分公司IOS开发2016.6-至今天津美源星商贸有限公司 IOS leader
目录
第一部分基础知识
第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
猜您喜欢

读书导航