https://experiments.withgoogle.com/linesofplay
2020 年 6 月 | Google創意實驗室提供
一個開源 AR 實驗,使用 Google 的 ARCore Depth API 產生與現實世界互動的骨牌藝術創作。
An open source AR experiment that uses Google's ARCore Depth API to generate domino art creations that interact with the real world.
Launch experiment Get the code
Design domino art creations that interact with the real world, thanks to Google's ARCore Depth API. This update to ARCore enables supported phones to capture information about the depth of a scene — no fancy sensors or add-ons needed, just use your camera to experiment with all the features ARCore has to offer. And, because Lines of Play is an AR Experiment, all of the code is open source so you can tinker with that, too. Here are some of our favorite features.
Occlusion
Since depth enables us to understand how far objects in a scene are from one another, we can know when an AR object should be hidden, or occluded, behind a real object. In Lines of Play, dominoes that appear to be “behind” a real object are treated exactly like they would in real life — hidden.
Collisions
The depth map provides finer scene data than ever before, and we use that additional information to craft more compelling physics. For instance, the depth map can accurately detect when a piece of furniture is in the way of a path of dominoes, and the dominoes will react accordingly by stopping once they bump into the furniture.
Try combining their effects to create even more awe-inspiring works of domino art!
透過 Google 的 ARCore Depth API設計與現實世界互動的骨牌藝術創作。 ARCore 的此更新使受支援的手機能夠捕獲有關場景深度的資訊 - 無需精美的感應器或附加元件,只需使用您的相機即可嘗試 ARCore 提供的所有功能。而且,由於 Lines of Play 是一項 AR 實驗,因此所有程式碼都是開源的,因此您也可以對其進行修改。以下是我們最喜歡的一些功能。
閉塞
由於深度使我們能夠了解場景中的物件彼此之間的距離,因此我們可以知道何時應將 AR 物件隱藏或遮擋在真實物件後面。在《Lines of Play》中,看似位於真實物體「後面」的骨牌的處理方式與現實生活中的骨牌完全一樣——隱藏。
碰撞