環境
實體環境
為各種空間打造單一體驗
讓使用者清楚瞭解應用程式需要多少空間。無論要用於跑步、廚房餐桌或足球場,向對方證明使用時的理想條件。您可以在 Play 商店中提供預覽圖像,也可以在應用程式中提供操作說明。
即使選擇應用程式可能存在的地方,無論是小型公寓還是廣闊田園,仍是有幫助的。包括家具或車流量等現實世界的障礙,以及身體挑戰,做好萬全準備。
公共空間為 AR 提供了一系列的挑戰。視周遭物體和人物數量而定,追蹤和遮蔽會變得困難。此外,手機移動和 AR 體驗都可能分心或造成危險。
虛擬環境
擴增環境會將從裝置相機擷取的真實影像與虛擬內容 (例如數位物件或資訊) 結合在一起。
手機在世界中移動時,ARCore 會追蹤手機相對於周遭世界的位置。這項程序稱為「並行異常和對應」或 COM。
ARCore 會查看相機圖片,並偵測視覺上的獨特功能,稱為「功能點」。然後,使用這些點來判別它的位置變化。系統會將視覺資訊與裝置的語氣測量結果結合,藉此估算相機在一段時間內相對於世界的姿勢 (位置和方向)。
ARCore 會根據裝置相機的姿勢對齊虛擬相機的姿勢,藉此算繪 3D 內容。該虛擬圖片會疊加在即時相機的影像上,讓虛擬內容在真實世界中呈現在畫面上。
持續探索
ARCore 不斷提升對現實環境的理解程度。
它會為你的空間建立模型,並在手機移動時加入這類資訊,相機又發現了空間的新位置,以及關於空間的新細節。ARCore 會辨識看起來位於常見水平和角度的幾個特徵點及分群點,因此應用程式可以使用這些介面做為平面。

環境限制
目前這類限制可能會導致表面無法準確理解,包括:
- 沒有紋理的平面表面,例如白色書桌
- 環境昏暗
- 非常明亮的環境
- 透明或反光錶面,例如玻璃
- 動態或移動的表面,例如草葉或水中的漣漪
當使用者遇到環境限制時,請指出問題所在並引導他們解決。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[null,null,["上次更新時間:2023-12-01 (世界標準時間)。"],[[["AR app experiences should be designed to adapt to various physical spaces, from small rooms to large, open areas, and consider real-world obstacles and challenges."],["AR technology uses the device's camera to combine real-world images with virtual content, tracking the phone's position and rendering virtual objects in the correct perspective."],["ARCore continuously learns and maps the environment, recognizing surfaces and updating its understanding as the device moves; however, certain environmental conditions can limit its accuracy."],["When environmental limitations affect the AR experience, provide users with clear feedback and guidance."],["Developers need to consider the ideal conditions for using their AR apps and provide users with clear instructions or preview graphics to set expectations."]]],["Developers should design AR apps adaptable to various physical spaces, from small rooms to large areas, accounting for obstacles and potential public space challenges like tracking issues and user safety. ARCore tracks a device's position using feature points, creating a model of the space, and identifying surfaces (planes). It renders virtual content from the correct perspective, combining the real and virtual world. However, limitations such as featureless, dim, reflective, or dynamic surfaces can affect tracking accuracy and the model's quality.\n"]]