unity开发arkit_使用Unity ARKit插件开发ARKit 1.5更新

unity开发arkit

Unity’s ARKit plugin now supports the new augmented reality (AR) features Apple announced in their Spring 2018 Update.  The launch of ARKit with iOS 11 put AR into the hands of hundreds of millions of iPhone and iPad users. With the introduction of ARKit 1.5, Apple aims to provide developers with the tools to power more immersive AR experiences that better integrate with the world.

Unity的ARKit插件现在支持Apple在其2018年Spring更新中宣布的新增强现实(AR)功能。 带有iOS 11的ARKit的推出使AR进入了数亿iPhone和iPad用户的手中。 随着ARKit 1.5的推出,Apple旨在为开发人员提供工具,以提供更身临其境的AR体验,从而更好地与世界融合。

With Unity’s updated ARKit plugin, developers can now take full advantage of the new ARKit 1.5 tools to create a new generation of AR apps. In addition to horizontal surfaces, you can now recognize vertical objects on vertical surfaces and map irregularly shaped surfaces with more accuracy. Find and recognize the position of real world 2D images and turn them into AR experiences such as bringing artwork to life. Other new features include relocalization, video formats, auto-focus and the ability to reset the world origin.

借助Unity更新的ARKit插件,开发人员现在可以充分利用新的ARKit 1.5工具来创建新一代的AR应用程序。 现在,除了水平表面之外,您还可以识别垂直表面上的垂直对象,并更精确地映射不规则形状的表面。 找到并识别现实世界2D图像的位置,并将其转变为AR体验,例如将艺术品变为现实。 其他新功能包括重新定位,视频格式,自动对焦以及重置世界原点的功能。

Download the updated plugin from Bitbucket and read below to start developing with the ARKit Spring 2018 update using Unity.

Bitbucket 下载更新的插件 并阅读以下内容,以开始使用Unity开发ARKit Spring 2018更新。

建立 (Setup)

要求 (Requirements)

脚步 (Steps)

    垂直平面 (Vertical Planes)

    One of the most popular new features is vertical planes. When the original ARKit was released, only horizontal planes were detected, and many developers clamored for vertical planes detection. With this update, Apple have answered this call and provided vertical planes detection. In Unity, you can see this as an extra entry in the UnityARPlaneDetection enum. We also added another entry in case you wanted to detect both vertical and horizontal planes at the same time. We also added the “vertical” entry in the ARPlaneAnchorAlignment enum so that you can identify the orientation of each plane anchor detected.

    最受欢迎的新功能之一是垂直平面。 当最初的ARKit发行时,仅检测到水平平面,许多开发人员大声疾呼要求检测垂直平面。 在此更新中,Apple已应答此呼叫并提供了垂直平面检测。 在Unity中,您可以在UnityARPlaneDetection枚举中将其视为额外的条目。 如果您想同时检测垂直和水平平面,我们还添加了另一个条目。 我们还在ARPlaneAnchorAlignment枚举中添加了“垂直”条目,以便您可以识别所检测到的每个平面锚的方向。

    Instead of a new example to show this feature, our original “Assets/UnityARKitPlugin /Examples/UnityARKitScene /UnityARKitScene.scene” can be used along with a slight modification of UnityCameraManager.cs to allow you to detect both horizontal and vertical planes with your configuration.

    可以使用我们原始的“ Assets / UnityARKitPlugin / Examples / UnityARKitScene /UnityARKitScene.scene ”来代替展示此功能的新示例,并稍加修改UnityCameraManager.cs以允许您通过配置同时检测水平和垂直平面。

    平面边界和细部网格 (Plane boundaries and detail mesh)

    With this update, instead of just plane centers and rectangle extents, ARKit now provides a more detailed visualization of the boundary of the plane and also a detailed mesh of the shape of the flat surface detected.

    通过此更新,ARKit现在不仅提供了平面中心和矩形范围,还提供了平面边界的更详细的可视化以及检测到的平面形状的详细网格。

    The implementation of this is via an ARPlaneGeometry item that is returned as part of an ARPlaneAnchor. Further examination of this item will show a structure similar to ARFaceGeometry which you will remember from ARKit Face Tracking for iPhone X.

    这是通过ARPlaneGeometry项目实现的,该项目作为ARPlaneAnchor的一部分返回。 对该项目的进一步检查将显示类似于ARFaceGeometry的结构,您会从iPhone X的ARKit Face Tracking中记住该结构

    You will be given an array of vectors which represent the boundary points, which can be plugged into a LineRenderer to give a representation of the boundary of the flat surface that has been detected. You will also be given an array of vertices, texture coordinates at those vertices, and a list of indices for the triangles of the detail mesh that represents the shape of the surface.

    您将获得代表边界点的向量数组,可以将这些向量插入LineRenderer中,以表示已检测到的平面边界。 您还将获得一个顶点数组,这些顶点处的纹理坐标以及一个表示表面形状的局部网格的三角形的索引列表。

    To see how to use this information, have a look at Assets/UnityARKitPlugin/Examples /ARKit1.5/UnityARPlaneMesh/UnityARPlaneMesh.scene. This scene is setup just like our original UnityARKitScene above, but the GeneratePlanes GameObject has a reference to ARKitPlaneGeometry prefab instead of the debugPlanePrefab.

    要查看

    • 1
      点赞
    • 4
      收藏
      觉得还不错? 一键收藏
    • 0
      评论
    课程介绍 本套课程从技术理念到项目实践,教大家系统掌握ARKit技术开发,随心打造iOS端AR增强现实应用。由一开始的开发环境搭建,到Unity ARKit Plugin、ARFoundation ARKit等不同时期技术的讲解。从平面模型放置、识别图片、手势交互、3D物体识别、面部AR贴纸、光照估计、环境探针、多人AR技术,甚至包含ARKit3.0的动作捕捉技术等。除了以上课程内容,更加入了随着技术更新与时俱进更新ARKit连载技术教学内容。课程收益 轻松理解ARKit的技术原理,从零到一创建自己的第一个AR项目。学习UnityARKit Plugin经典技术,了解ARKit中的常见概念和原理。学会在 ARFoundation 中使用ARKit,进行企业级AR项目开发。学会如何在AR项目里播放模型动画,通过触屏手势交互实现模型的旋转和缩放。 了解ARKit的图片识别,掌握AR卡片、AR书籍的实现方法。 学会使用面部增强技术,实现热门短视频应用的AR贴纸效果,实现面部表情追踪。学会使用ARKit物体检测技术,实现3D物体识别,可以广泛应用于工业、建筑、古董、玩具手办、艺展览等不同场景。学习ARKit中的经典交互案例,优化AR项目的用户体验。熟练使用环境纹理、光照估计技术,让AR内容随当前现实场景自动变化调节,看起来更加真实。基于WorldMap、CollaborativeSession AR技术,实现AR场景的持久化及多人AR体验效果。

    “相关推荐”对你有帮助么?

    • 非常没帮助
    • 没帮助
    • 一般
    • 有帮助
    • 非常有帮助
    提交
    评论
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

    当前余额3.43前往充值 >
    需支付:10.00
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值