首页 > 学院 > 开发设计 > 正文

Unity编程笔录--Tango创建一个简单AR应用

2019-11-08 00:23:48
字体:
来源:转载
供稿:网友

前言:

使用TangoSDK来创建一个简单的AR应用,里面有几个值得注意的地方。

正文

首先先打开TangoSDK>Examples>Scenes>SimpleAugmentedReality场景,然后直接运行打包,首先看看效果。打包到Tango设备上之后你会发现(在设备上没法做gif动态图了,所以还是在电脑上运行,效果一样,有设备的在设备上看),月球转着转着就没了,如动态图所示。 这里写图片描述

原因是摄像机的远距不够,调节Far属性即可 这里写图片描述

另外,在TangoManager对象上,可以看到部分设置,官网上是这样给出: In the Hierarchy panel, select Tango Manager, and then in the Inspector panel, make sure the following options are selected:

Auto-connect to Service. Enable Motion Tracking with Auto Reset. Auto Reset. Enable Video Overlay with Method = Texture and Raw Bytes.

也就是说,实现AR必须要勾选这些选项。 这里写图片描述


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表