# Rotation-gizmo flickering in VR

**URL:** <https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331>\
**Category:** Bugs\
**Tags:** xr, vr, gizmomanager\
**Created:** [September 1, 2025, 4:48pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331 "2025-09-01T16:48:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![RainerHeintzmann](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rainerheintzmann/32/32692_2.png) [@RainerHeintzmann](https://forum.babylonjs.com/u/RainerHeintzmann)\
**Post date:** [September 1, 2025, 4:48pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/1 "2025-09-01T16:48:17Z")

</div>

Using the Gizmo-Manager in VR (only in VR) the Gizmo rings seems to flicker between hovering (yellow) and not hovering (its ring color) at a fairly high frequency as if it is constantly selecting and deselecting the nearby ring. When you then try to grab the gizmo, it is a matter of luck (~50% chance) whether you succeed or not to actually grab it. Here is a playground demonstrating the issue. Note that I could only see this problem on a Pico 4 and not on the emulator, which does not seem to support hovering via the pointers at all. Any ideas how to fix it or create a workaround?

> **[Babylon.js Playground](https://playground.babylonjs.com/#31M2AP%23700)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

I am reposting this question from [Rotation Gizmo Sensitivity](https://forum.babylonjs.com/t/rotation-gizmo-sensitivity/42554) here, since I think the old thread is stale and potentilly no one looks at it any more.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 1, 2025, 5:43pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/2 "2025-09-01T17:43:00Z")

</div>

cc @Cedric and @docEdub who likes XR as well

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 2, 2025, 8:59am UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/3 "2025-09-02T08:59:45Z")

</div>

I guess it’s related to the camera rig. Is there a way to replicate that with a simple PG ?

---

<div class="post-metadata">

**Author:** ![RainerHeintzmann](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rainerheintzmann/32/32692_2.png) [@RainerHeintzmann](https://forum.babylonjs.com/u/RainerHeintzmann)\
**Post date:** [September 2, 2025, 9:53am UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/4 "2025-09-02T09:53:14Z")

</div>

I dont quite understand. The flickering is only seen when you hover the pointer over it. So why would the stereo camera rig cause the problems? But yes, it is possible I guess.

The playground

> **[Babylon.js Playground](https://playground.babylonjs.com/#31M2AP%23700)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

is fairly simple, I would say. The problem is that you need a VR set to test it. Did you mean, whether there is a way to reproduce this without a VR set? Not sure. Maybe the VR emulators could show the effect, but I did not see it yet.

I think the issue is related to the `GizmoManager`. I should test this again, but I think the ordinary rotation gizmo creation is fine also in VR.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 2, 2025, 9:58am UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/5 "2025-09-02T09:58:25Z")

</div>

That’s my guess. I don’t have a VR headset so to test/debug, I need a reliable way to repro.

If the bug appears with the manager but not with position, scaling or rotation gizmo then it might be related to the utilitylayer. Something like camera in use is not forwarded properly.

---

<div class="post-metadata">

**Author:** ![RainerHeintzmann](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rainerheintzmann/32/32692_2.png) [@RainerHeintzmann](https://forum.babylonjs.com/u/RainerHeintzmann)\
**Post date:** [September 2, 2025, 11:06am UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/6 "2025-09-02T11:06:49Z")

</div>

I guess, if there is a simple way to disable one of the two cameras, I could try to see if the bug is also there.

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [September 2, 2025, 7:39pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/7 "2025-09-02T19:39:38Z")

</div>

I repro this on my Quest 3. Looking into it now

---

<div class="post-metadata">

**Author:** ![RainerHeintzmann](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rainerheintzmann/32/32692_2.png) [@RainerHeintzmann](https://forum.babylonjs.com/u/RainerHeintzmann)\
**Post date:** [September 2, 2025, 9:24pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/8 "2025-09-02T21:24:03Z")

</div>

Thanks! Did you manage to see the problem? I tried `xr.camera.rightCamera.setEnable(false)` but this did not have the desired effect and also did not change the flicker problem.

---

<div class="post-metadata">

**Author:** ![RainerHeintzmann](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rainerheintzmann/32/32692_2.png) [@RainerHeintzmann](https://forum.babylonjs.com/u/RainerHeintzmann)\
**Post date:** [September 2, 2025, 9:34pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/9 "2025-09-02T21:34:20Z")

</div>

Indeed the standard gizmo mesh is working fine in VR. It is just the GizmoManager that messes up.

Here is a playground with both side by side:

> **[Babylon.js Playground](https://playground.babylonjs.com/#31M2AP%23717)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [September 2, 2025, 11:45pm UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/10 "2025-09-02T23:45:40Z")

</div>

Hmm, ya and using `utilLayer` in the gizmo manager makes it work correctly in VR, too …so the problem only happens when the default utility layer is used for the gizmo manager.

> **[Babylon.js Playground](https://playground.babylonjs.com/#31M2AP%23722)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

---

<div class="post-metadata">

**Author:** ![RainerHeintzmann](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/rainerheintzmann/32/32692_2.png) [@RainerHeintzmann](https://forum.babylonjs.com/u/RainerHeintzmann)\
**Post date:** [September 3, 2025, 6:09am UTC](https://forum.babylonjs.com/t/rotation-gizmo-flickering-in-vr/60331/11 "2025-09-03T06:09:00Z")

</div>

Interesting…. Thanks a lot. At least this is a great way to fix the problem. I guess it would still be nice to find the bug and fix it.
