# WebXR - Objects jittering and missing plane detection support

**URL:** <https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975>\
**Category:** General\
**Tags:** webxr\
**Created:** [May 25, 2023, 1:42pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975 "2023-05-25T13:42:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![steoberg](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@steoberg](https://forum.magicleap.cloud/u/steoberg)\
**Post date:** [May 25, 2023, 1:42pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/1 "2023-05-25T13:42:44Z")

</div>

Hello,

I post this in "General" since I couldn't find any WebXR related categories.  
When I load a glb in threejs it shows up fine and it stays stable when I rotate my head.  
But when I walk around the object it starts jittering. Any idea why?

Also is plane detection supported yet? The threejs demo doesn't seem to work.

Thanks!

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [May 25, 2023, 8:13pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/4 "2023-05-25T20:13:00Z")

</div>

Hi @steoberg,

Welcome to the forums. We are so glad to have you here engaging with us.

I'm looking into this now and will get back to you as soon as I hear back from our devs.

Thank you.

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [May 30, 2023, 4:16pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/6 "2023-05-30T16:16:51Z")

</div>

Hi @steoberg, thank you for your question. It is possible that the model you're using may be too big, exceeding the capacity of Magic Leap 2. What is its size? Also, plane detection in WebXR is not supported.

---

<div class="post-metadata">

**Author:** ![madschristensen99](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@madschristensen99](https://forum.magicleap.cloud/u/madschristensen99)\
**Post date:** [May 31, 2023, 9:18pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/8 "2023-05-31T21:18:31Z")

</div>

@steoberg What are you building with WebXR? I am looking to network with other developers building WebXR applications

---

<div class="post-metadata">

**Author:** ![steoberg](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@steoberg](https://forum.magicleap.cloud/u/steoberg)\
**Post date:** [June 2, 2023, 4:30am UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/9 "2023-06-02T04:30:31Z")

</div>

Thanks for your answer. Yes the model is quite big and the problem doesn't appear in the threejs lighting demo with the spheres. So probably it is the size.

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [June 5, 2023, 5:36pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/12 "2023-06-05T17:36:44Z")

</div>

Hi @steoberg

I see that this is marked as solved but I would also like to point you to the focus distance variable. It may also help remedy some of that jittering. [MLGraphicsFrameParamsEx | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/api-ref/api/Modules/group___graphics/struct_m_l_graphics_frame_params_ex#float-focus-distance)

---

<div class="post-metadata">

**Author:** ![iangilman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/iangilman/32/1406_2.png) [@iangilman](https://forum.magicleap.cloud/u/iangilman)\
**Post date:** [January 9, 2024, 7:29pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/13 "2024-01-09T19:29:21Z")

</div>

Is the focus distance variable available in WebXR?

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [February 20, 2024, 5:34pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/14 "2024-02-20T17:34:13Z")

</div>

Currently setting the focus distance is not support by WebXR but we are experimenting with ways to expose it in the future. Are you interested in the focus distance to decrease the offset when recording Mixed Reality content or is your content jittering or is it related to something else?

---

<div class="post-metadata">

**Author:** ![iangilman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/iangilman/32/1406_2.png) [@iangilman](https://forum.magicleap.cloud/u/iangilman)\
**Post date:** [February 20, 2024, 5:54pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/15 "2024-02-20T17:54:57Z")

</div>

To be honest I forget why I was asking for this! No doubt it was for some research I was doing at the time, but I've moved on since then. Thank you for following up!

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [February 24, 2024, 1:00pm UTC](https://forum.magicleap.cloud/t/webxr-objects-jittering-and-missing-plane-detection-support/1975/16 "2024-02-24T13:00:35Z")

</div>

Closed on February 24, 2024, 1:00pm UTC

This topic was automatically closed after 2 days. New replies are no longer allowed.
