# Augmented Reality (WebXR/ARCore) Examples with plane detection and positioning?

**URL:** <https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509>\
**Category:** Questions\
**Created:** [January 15, 2021, 2:16pm UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509 "2021-01-15T14:16:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danilo\_Vukovic](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danilo_vukovic/32/12814_2.png) [@Danilo\_Vukovic](https://forum.babylonjs.com/u/Danilo_Vukovic)\
**Post date:** [January 15, 2021, 2:16pm UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/1 "2021-01-15T14:16:01Z")

</div>

Hello everyone,  
are there any examples that use plane detection and if possible, place an object on said plane?  
On mobile phones, using the built in AR support of course.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 15, 2021, 3:25pm UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/2 "2021-01-15T15:25:46Z")

</div>

Of course - [WebXR Augmented Reality Features | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/webXR/webXRARFeatures) at the end of this page 🙂

---

<div class="post-metadata">

**Author:** ![Danilo\_Vukovic](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danilo_vukovic/32/12814_2.png) [@Danilo\_Vukovic](https://forum.babylonjs.com/u/Danilo_Vukovic)\
**Post date:** [January 17, 2021, 10:47am UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/3 "2021-01-17T10:47:37Z")

</div>

I don’t know why but half of these things don’t work. Even the example doesn’t do anything on my ARCore supported phone…

---

<div class="post-metadata">

**Author:** ![Danilo\_Vukovic](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danilo_vukovic/32/12814_2.png) [@Danilo\_Vukovic](https://forum.babylonjs.com/u/Danilo_Vukovic)\
**Post date:** [January 17, 2021, 10:57am UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/4 "2021-01-17T10:57:09Z")

</div>

Ok, so we have to enable WebXR incubation in chrome flags… does that mean that there is no way to get plane detection working if the user doesn’t enable the flag?

---

<div class="post-metadata">

**Author:** ![Danilo\_Vukovic](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danilo_vukovic/32/12814_2.png) [@Danilo\_Vukovic](https://forum.babylonjs.com/u/Danilo_Vukovic)\
**Post date:** [January 18, 2021, 6:27am UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/5 "2021-01-18T06:27:18Z")

</div>

Bumpp can someone help me w this in particular

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 18, 2021, 8:08am UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/6 "2021-01-18T08:08:21Z")

</div>

You got the answer yourself, i think 🙂

No, the user needs to enable them. This is temporary, until chromium/chrome/google/any browser supporting AR will decide those features are stable.

---

<div class="post-metadata">

**Author:** ![Danilo\_Vukovic](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danilo_vukovic/32/12814_2.png) [@Danilo\_Vukovic](https://forum.babylonjs.com/u/Danilo_Vukovic)\
**Post date:** [January 18, 2021, 9:12am UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/7 "2021-01-18T09:12:56Z")

</div>

I see. Do you maybe know is it possible to get basic object placement on ground using hit tests? If you’ve had any experience with it of course, if not thanks for your help so far.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 18, 2021, 9:14am UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/8 "2021-01-18T09:14:56Z")

</div>

Of course, you don’t need plane detection for hit testing. The basic hit test demo on the site doesn’t use planes as well. It does use anchors, which are technically not needed as to place an object in space. an anchor will simply keep the position more accurate over time.

---

<div class="post-metadata">

**Author:** ![Danilo\_Vukovic](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/danilo_vukovic/32/12814_2.png) [@Danilo\_Vukovic](https://forum.babylonjs.com/u/Danilo_Vukovic)\
**Post date:** [January 18, 2021, 9:16am UTC](https://forum.babylonjs.com/t/augmented-reality-webxr-arcore-examples-with-plane-detection-and-positioning/17509/9 "2021-01-18T09:16:39Z")

</div>

Great, thank you.
