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。"],[[["\u003cp\u003eWebXR brings augmented reality experiences to web browsers, leveraging ARCore on Chrome for Android devices.\u003c/p\u003e\n"],["\u003cp\u003eChoosing 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.\u003c/p\u003e\n"],["\u003cp\u003eWhile 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.\u003c/p\u003e\n"],["\u003cp\u003eFeature support for WebXR in Chrome is actively evolving, with some features fully shipped and others in developer trial or not yet implemented.\u003c/p\u003e\n"]]],[],null,["# WebXR compared to ARCore\n\nThe WebXR standard provides augmented reality capabilities in a web browser.\nOn Google Chrome, WebXR uses ARCore to provide AR functionalities on supported Android devices.\n\nWhen choosing between WebXR and ARCore, consider the target user experience. An Android application using ARCore will provide a more seamless user experience than opening a web browser to display WebXR content. Similarly, a webpage will be able to start a seamless WebXR session in the browser. This allows your users to stay within a familiar environment.\n\nFeature comparison\n------------------\n\nWhen choosing to develop your AR experience using either ARCore or WebXR, keep in mind that not all ARCore features are available in WebXR.\n\nThe following table describes ARCore features and their corresponding status in Chrome.\n\n| ARCore Feature | Chrome Status | WebXR Explainer |\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| [Hit Test](https://developers.google.com/ar/discover/concepts#user_interaction) | [Shipped](https://chromestatus.com/features/4755348300759040) | [WebXR Device API - Hit Testing](https://github.com/immersive-web/hit-test/blob/master/hit-testing-explainer.md) |\n| [Anchors](/ar/develop/webxr/anchors) | [Shipped](https://chromestatus.com/features/5129925015109632) | [What Is An Anchor](https://github.com/immersive-web/anchors/blob/master/explainer.md) |\n| [Depth API](https://developers.google.com/ar/develop/java/depth/overview) | [Shipped](https://www.chromestatus.com/features/5742647199137792) | [WebXR Depth Sensing](https://github.com/immersive-web/depth-sensing/blob/main/explainer.md) |\n| [Plane Detection](https://developers.google.com/ar/discover/concepts#environmental_understanding) | [Developer Trial](https://chromestatus.com/feature/5732397976911872) | [Plane detection explainer](https://github.com/immersive-web/real-world-geometry/blob/master/plane-detection-explainer.md) |\n| [Lighting Estimation](https://developers.google.com/ar/develop/java/light-estimation) | [Shipped](https://chromestatus.com/feature/5704707957850112) | [WebXR Device API - Lighting Estimation](https://github.com/immersive-web/lighting-estimation/blob/main/lighting-estimation-explainer.md) |\n| [Augmented Faces](/ar/develop/java/augmented-faces) | *highlight_off* | *highlight_off* |\n| [Augmented Images](/ar/develop/java/augmented-images) | *highlight_off* | *highlight_off* |\n| [Instant Placement](/ar/develop/java/instant-placement/overview) | *highlight_off* | *highlight_off* |"]]