![](https://i-blog.csdnimg.cn/blog_migrate/baa87d9cc44555bac799f44c4d6912dd.png)
unity arcore
Unity’s AR Foundation 4.1 supports Google’s new ARCore Depth API. With the addition of this capability, AR Foundation developers can now deliver experiences that blend digital content with the physical world more realistically than ever before.
Unity的AR Foundation 4.1支持Google的新ARCore深度API。 通过添加此功能,AR Foundation开发人员现在可以提供比以往任何时候都更现实的将数字内容与物理世界融合的体验。
With its extensive feature set and vast reach, Google’s ARCore is one of the most popular and powerful SDKs available to developers of augmented reality (AR) experiences. We have been working closely with Google to ensure Unity users have swift access to newly released ARCore features. The release of the ARCore Depth API is a significant milestone as it enables enhanced understanding of physical surroundings as well as more realistic visuals in AR Foundation-based experiences.
凭借其广泛的功能集和广泛的影响力,Google的ARCore是增强现实(AR)体验开发人员可以使用的最受欢迎和功能最强大的SDK之一。 我们一直与Google紧密合作,以 确保Unity用户可以快速访问新发布的ARCore功能 。 ARCore深度API的发布是一个重要的里程碑,因为它可以增强对物理环境的了解,以及基于AR Foundation的体验中更逼真的视觉效果。
ARCore can take advantage of multiple types of sensors to generate depth images. On phones with only RGB cameras, ARCore employs depth-from-motion algorithms that compare successive camera images as the phone moves to estimate the distance to every pixel. This method allows for depth data to be available on hundreds of millions of Android phones. And on devices that include a Time of Flight camera, the depth data is even more precise.
ARCore可以利用多种类型的传感器来生成深度图像。 在只有RGB摄像头的手机上,ARCore采用动态深度算法,该算法可以比较手机移动时连续的摄像头图像,以估计到每个像素的距离。 这种方法允许深度数据在数亿部Android手机上可用。 在带有飞行时间相机的设备上,深度数据甚至更加精确。
AR Foundation now includes the following new features:
现在,AR Foundation包括以下新功能:
Automatic occlusion
自动遮挡
Access to depth images
访问深度图像
遮挡变得容易 (Occlusion made easy)
The most obvious effect of ARCore’s depth information is the ability to realistically blend digital content and real-world objects.
ARCore深度信息最明显的效果是能够将数字内容与现实世界对象真实融合。
We’ve expanded AR Foundation’s existing support for pass-through video to include per-pixel depth information provided by ARCore so that occlusion “just works” on supported devices. By simply adding the AR Occlusion Manager to the same GameObject that holds the AR Camera and AR Background Renderer components, the depth data is automatically evaluated by the shader to create this blending effect.
我们已经扩展了AR Foundation对直通视频的现有支持,以包括ARCore提供的每像素深度信息,以便遮挡在支持的设备上“有效”。 只需将AR Occlusion Manager添加到包含AR Camera和AR Background Renderer组件的同一个GameObject中,着色器将自动评估深度数据以创建这种混合效果。
![](https://i-blog.csdnimg.cn/blog_migrate/d6b6e6ef8cac5e32378129e9b0e81470.png)
When occlusion is combined with AR Foundation’s existing support for ARCore’s Lighting Estimation capabilities, augmented reality apps can achieve almost seamless visual quality.
当遮挡与AR Foundation对ARCore的Lighting Estimation功能的现有支持相结合时,增强现实应用程序可以实现几乎无缝的视觉质量。
使用深度图像与世界互动 (Interact with the world using the depth image)
AR Foundation provides developers convenient access to the same per-pixel depth data it uses for automatic occlusion. Depth data is a powerful tool that allows developers to add rich interactions with the user’s surroundings. For example, the depth data could be used to build a representation of real-world objects that can be fed to Unity’s physics system. This creates the opportunity for digital content to appear to respond to and interact with the physical surroundings.
AR Foundation使开发人员可以方便地访问与自动遮挡相同的每像素深度数据。 深度数据是一个强大的工具,允许开发人员添加与用户周围环境的丰富互动。 例如,深度数据可用于构建可被馈送到Unity物理系统的现实世界对象的表示。 这为数字内容提供了响应物理环境并与之交互的机会。
This capability opens the door to novel AR game experiences such as The SKATRIX by Reality Crisis. This upcoming title leverages the ARCore Depth API to generate meshes that transform the physical surroundings into an AR skatepark.
此功能为新颖的AR游戏体验(如 《 现实危机 》的SKATRIX)打开了大门 。 即将发布的标题利用了ARCore深度API来生成 将物理环境转换为AR滑板场的 网格 。
Having access to the raw depth data gives developers the tools to create unique interactive AR experiences that weren’t previously possible.
可以访问原始深度数据,从而为开发人员提供了工具来创建以前无法实现的独特的交互式AR体验。
今天尝试 (Try it today)
The 4.1 versions of the AR Foundation and ARCore XR Plugin packages contain everything you need to get started and are compatible with Unity 2019 LTS and later. Samples demonstrating how to set up automatic occlusion and depth data are located in AR Foundation Samples on GitHub.
AR Foundation 和 ARCore XR插件 包 的4.1版本 包含您入门所需的一切,并且与Unity 2019 LTS及更高版本兼容。 演示如何设置自动遮挡和深度数据的 示例 位于GitHub上的 AR Foundation示例 中。
We’re excited to see the enhanced visuals and rich experiences made possible by the ARCore Depth API. And we look forward to continuing our close collaboration with Google to bring more awesome AR functionality to AR Foundation developers.
我们很高兴看到ARCore Depth API带来了增强的视觉效果和丰富的体验。 我们期待与Google继续紧密合作,为AR Foundation开发人员带来更多出色的AR功能。
For more information please check out Google’s ARCore Depth API announcement and Depth Lab app to see examples of this tech that were made in Unity. Finally, join us on the Unity Handheld AR forums as you try out this latest version of AR Foundation. We’d love to hear about what you’ve created using the new features, and we welcome your feedback.
有关更多信息,请查看Google的ARCore深度API 公告 和 深度实验室应用, 以查看在Unity中制作的该技术的示例。 最后,在 试用最新版的AR Foundation时 ,请加入 Unity Handheld AR论坛 。 我们希望知道您使用新功能创建的内容,我们欢迎您的反馈。
unity arcore