Vuforia AR SDK使用入门
1.登陆Voforia中文社区http://vuforia.****.net/,点击加入社区进行注册并登陆
2.在跳转后的界面中选择Downloads标签页,然后选择最后一个Download for Unity进行下载
3.弹框选择 I Agree,进行下载
4.选择Develop选项卡-->License Manager-->Add License Key
5.Project Type-->选择Development,填写Project Details的内容,点击Next
6.勾选复选框,点击Confirm
7.确认后跳转的界面
8.点击VuforiaTest可以看到License Key
9.选择 Target Manager选项卡-->Add Database
10.在弹框中输入信息,然后点击Create
11.完成后跳转的界面
12.点击TestVuforiaDatabase
13.点击Add Target,在弹框中输入详细信息,点击Add
14.跳转后的界面
15.点击TestVuforiaDatabase可以看到刚才上传的那张图片和Target Name
16.点击"Download Database(All)"
17.选择Unity Editor,然后点击Download
18.在unity中创建一个新的项目,导入Vuforia for Unity的SDK,vuforia-unity-6-2-10.unitypackage
19.导入成功在Assets下面可以看到下面的文件夹
20.删除Main Camera,打开Assets-->Prefabs
21.将ARCamera拖动到Hierarchy视图
22.将ImageTarget拖动到Hierarchy视图
23.选中ARCamera,在右侧的Inspector中可以看到“Open Vuforia configuration”,点击这个按钮
24.在弹出的界面中,在App License Key中输入上面申请到的key,在Datasets下选中两个复选框,双击选中ARCamera,Inspector可以回到原来的界面
25.双击导入上面下载的database包
26.Assets下出现了一个StreamingAssets的文件夹
27.选中ImageTarget,在右侧的Inspector视图中找到Image Target Behaviour(Script),在下拉框中Type选择Predefined,ImageTarget选择上面创建的所需要的Target Name
28.在Image Target下面创建一个Cube
运行后的界面
29.
在ImageTarget下添加一个Sphere
扫描下面的图片后运行结果
参考资料:
https://library.vuforia.com/articles/Training/User-Defined-Targets-Guide
https://library.vuforia.com/articles/Solution/Getting-Started-with-Vuforia-for-Unity-Development
https://library.vuforia.com/getting-started
https://developer.vuforia.com/support
apk下载地址:http://download.****.net/detail/nicolelili1/9875670
所需扫描的图片: