ar技术 unity_One Team如何使用Unity通过AR技术传播Holiday Cheer

ar技术 unity_One Team如何使用Unity通过AR技术传播Holiday Cheer

ar技术 unity

Looking to spread joy at the end of what they describe as a “pretty dark” year, Team One created Happy Things, an “augmented reality happiness-maker” app. Read on to find out how they made it with Unity.

为了在他们所说的“相当黑暗”的一年结束时散布快乐,Team One创造了Happy Things,一款“增强现实快乐制造者”应用程序。 继续阅读以了解他们如何使用Unity做到这一点。

Team One worked all year to help brands understand and engage customers in a meaningful way. To put a bow on 2018, they created an engaging AR app that they hope will make users smile and laugh. Inspired by the meme genre “Real Life Doodles,” they wanted a simple way for people to bring inanimate objects to life and share them.

团队一整年致力于帮助品牌以有意义的方式理解和吸引客户。 为了致敬2018年,他们创建了一个引人入胜的AR应用程序,希望它们能够使用户微笑和大笑。 受到模因类型“现实生活涂鸦”的启发,他们希望人们能以一种简单的方式将无生命的物体带入生活并分享它们。

To do this, they worked with Digital Domain, a creative force across industries whose artists have won over 100 major awards, including Oscars, Clios, BAFTAs and Cannes Lions.

为此,他们与Digital Domain合作 ,跨领域的创意团队的艺术家获得了100多个主要奖项,包括奥斯卡,Clios,BAFTA和戛纳电影节。

Users simply open the app, point their camera at any object, place and size an animated Happy Thing on the object, record a short voiceover and voilà – it’s ready for sharing.

用户只需打开应用程序,将相机对准任何对象,在该对象上放置和设置动画“开心事”的大小,记录简短的画外音和花絮–就可以共享了。

To build the app, Digital Domain created the animations and Team One did the development work. Here are the Unity tools the agency used to bring Happy Things to life:

为了构建该应用程序,Digital Domain制作了动画,而Team One进行了开发工作。 以下是该机构用来使Happy Things栩栩如生的Unity工具:

Sprite Renderer: Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience. The animation assets in the app were imported into Unity as 2D sprites on sprite cards and they used the Sprite Renderer to control how they appear in the scene.

Sprite RendererSprite本质上只是标准纹理,但是为了提高效率和便利性,有一些特殊的技术可以组合和管理Sprite纹理。 该应用程序中的动画资源已作为Sprite卡上的2D Sprite导入到Unity中,并且它们使用Sprite Renderer来控制它们在场景中的显示方式。

ARKit plugin: This is a native Unity plugin that exposes the functionality of Apple’s ARKit SDK to your Unity projects for compatible iOS devices. Specifically, they used ARKit to handle the markerless camera tracking, as well as horizontal and vertical plane detection.

ARKit插件:这是一个本机Unity插件,可将Apple ARKit SDK的功能向兼容iOS设备的Unity项目公开。 具体来说,他们使用ARKit来处理无标记相机跟踪以及水平和垂直平面检测。

Custom scripts: Unity lets you create your own components using scripts. These allow you to trigger game events, modify component properties over time, and respond to user input any way you like. Team One wrote custom scripts to handle the playback of the recorded video.

自定义脚本: Unity使您可以使用脚本创建自己的组件。 这些功能使您可以触发游戏事件,随时间修改组件属性以及以任何您喜欢的方式响应用户输入。 第一小组编写了自定义脚本来处理录制视频的回放。

Microphone API: This was used to record audio via a connected microphone. They used this API to do the voice recording and to drive the mouth animation. The amplitude of the microphone drives which frame of the mouth animation the app plays at any time.

麦克风API:用于通过连接的麦克风录制音频。 他们使用此API进行语音录制并驱动嘴巴动画。 麦克风的振幅决定了应用在任何时候播放的嘴巴动画的帧。

1024×1024 RGBA ASTC 10×10 Compression Algorithm: Compressed RGB texture. Team One used this to reduce the redundancy of frames and to trim approximately 1200 from the total frame count. This allowed them to cut their app install size from 1.1GB to approximately 340MB. The download size on the App Store is only 32MB.

1024×1024 RGBA ASTC 10×10压缩算法:压缩的RGB纹理。 第一小组使用它来减少帧的冗余,并从总帧数中减少大约1200。 这使他们可以将其应用程序安装大小从1.1GB减少到大约340MB。 在App Store上的下载大小仅为32MB。

Unity资产商店 (Unity Asset Store)

NatCorder – Video Recording API: A lightweight, easy-to-use, full-featured video recording API for iOS and Android. Team One used this API for the video capture.

NatCorder –视频录制API:轻量级,易于使用的,功能齐全的iOS和Android视频录制API。 第一小组使用此API进行视频捕获。

NatShare – Mobile Sharing API: A lightweight sharing API for iOS and Android. Team One used this API to enable users to save video recordings from the app to the camera roll.

NatShare –移动共享API :适用于iOS和Android的轻量级共享API。 Team One使用此API使用户能够将应用程序中的视频记录保存到相机胶卷中。

Go to www.happythingsapp.com to learn more about the app. When you share your own Happy Things, be sure to include the hashtags #happythingsapp and #madewithunity so that we can all see your creations!

请访问www.happythingsapp.com,以了解有关该应用程序的更多信息。 当您分享自己的快乐事物时,请确保包含#happythingsapp和#madewithunity标签,以便我们所有人都能看到您的作品!

翻译自: https://blogs.unity3d.com/2018/12/15/how-team-one-used-unity-to-spread-holiday-cheer-with-ar-technology/

ar技术 unity