WebXR 与 ARCore 对比
WebXR 标准可在网络浏览器中提供增强现实功能。在 Google Chrome 上,WebXR 使用 ARCore 在受支持的 Android 设备上提供 AR 功能。
在 WebXR 和 ARCore 之间进行选择时,请考虑目标用户体验。与打开网络浏览器以显示 WebXR 内容相比,使用 ARCore 的 Android 应用将提供更顺畅的用户体验。同样,网页也将能够在浏览器中启动顺畅的 WebXR 会话。这样,您的用户就可以待在熟悉的环境中。
特性比较
在选择使用 ARCore 或 WebXR 开发 AR 体验时,请记住,并非所有 ARCore 功能都支持 WebXR。
下表介绍了 ARCore 功能及其在 Chrome 中的对应状态。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-08。
[null,null,["最后更新时间 (UTC):2023-12-08。"],[[["WebXR brings augmented reality experiences to web browsers, leveraging ARCore on Chrome for Android devices."],["Choosing between WebXR and ARCore depends on the desired user experience: native apps with ARCore offer a more integrated feel, while WebXR provides accessibility and familiarity within the browser."],["While WebXR supports core AR features like hit testing, anchors, depth API, and lighting estimation, some advanced ARCore functionalities, such as Augmented Faces and Images, are not yet available in WebXR."],["Feature support for WebXR in Chrome is actively evolving, with some features fully shipped and others in developer trial or not yet implemented."]]],[]]