# Zoom and scaling issue, mesh flickers on movement

**URL:** <https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046>\
**Category:** Questions\
**Created:** [October 19, 2025, 9:11am UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046 "2025-10-19T09:11:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petros\_Pap](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/petros_pap/32/47817_2.png) [@Petros\_Pap](https://forum.babylonjs.com/u/Petros_Pap)\
**Post date:** [October 19, 2025, 9:11am UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/1 "2025-10-19T09:11:00Z")

</div>

Hello, i have create this simply PG

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

i have some issues when i zoom into mesh and move with ArcRotateCamera! (freecamera looks better)

click on “boombox” and move camera near to see the issue!

mesh is parent of cube and has set with normalizeToUnitCube as I need the smallest values that i can get, then scaled with scaleInPlace..

Seems like this not the right way to do!!

Any idea how to solve this issue???

---

<div class="post-metadata">

**Author:** ![HiGreg](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Post date:** [October 19, 2025, 4:07pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/2 "2025-10-19T16:07:22Z")

</div>

scaleInPlace will not trigger a setter. Some functionality in Babylon depends on code within a setter.

Try setting the scale property to itself so the setter is triggered.

I’m not sure mesh.scale has a setter, but if it does, this may help.

---

<div class="post-metadata">

**Author:** ![inteja](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/inteja/32/22553_2.png) [@inteja](https://forum.babylonjs.com/u/inteja)\
**Post date:** [October 19, 2025, 8:14pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/3 "2025-10-19T20:14:40Z")

</div>

Looks like you’ve exceeded the floating point numeric precision limit.

Your `camera.maxZ` is 20,000,000.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 20, 2025, 7:30am UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/4 "2025-10-20T07:30:21Z")

</div>

@inteja has identified the issue.

Try using the new floating origin mode to eliminate the precision problem (see line 133):

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

However, the camera continues to shake after clicking the “Boombox” button. cc @georgie regarding this issue.

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [October 21, 2025, 3:51pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/5 "2025-10-21T15:51:50Z")

</div>

Without FloatingOrigin mode:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/9/89dab94eae44ce69fd6463250af7fe8682761b66.jpeg)

With floatingOrigin mode:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/0/10fc26315c90474548edb4e184d84c18ccd4f13e.jpeg)

i’m not seeing the shaking, can you give me repro steps? maybe it has to do with order in which you animate?

I do see that as you move thorugh the cube and animate towards the boombox it flickers due to passing through the sides of the cube, but i’m not seeing the boombox itself flickering

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 21, 2025, 4:00pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/6 "2025-10-21T16:00:35Z")

</div>

Here’s what I see when I simply rotate the camera around the boombox:

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [October 21, 2025, 11:09pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/7 "2025-10-21T23:09:44Z")

</div>

ah yes I can see that too, and I can repro on a simple playground with large scale / rotation of camera. I will investigate 🙂

---

<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:** [October 21, 2025, 11:45pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/8 "2025-10-21T23:45:47Z")

</div>

Assigned @georgie on October 21, 2025, 11:45pm UTC



---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 22, 2025, 5:49pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/9 "2025-10-22T17:49:28Z")

</div>

Creating the engine with high precision matrix fixes the problem:

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

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [October 22, 2025, 6:04pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/10 "2025-10-22T18:04:53Z")

</div>

working on a fix within floatingOriginMode!

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [October 22, 2025, 9:26pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/11 "2025-10-22T21:26:23Z")

</div>

@Petros_Pap FYI I have an incoming change that moves FloatingOriginMode to engine instead of scene creation options, and sets high precision matrix usage on engine.

To enable it, pass { useFloatingOriginMode: true } when creating engine.

And to enable in playground, override the createEngine function like this [Babylon.js Playground](https://playground.babylonjs.com/#Q15YF0)

I will make an announcement post as well once the PR is checked in

[FloatingOriginMode moved to engine; Fix matrix precision setter by georginahalpern · Pull Request #17334 · BabylonJS/Babylon.js](https://github.com/BabylonJS/Babylon.js/pull/17334/files)

---

<div class="post-metadata">

**Author:** ![Petros\_Pap](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/petros_pap/32/47817_2.png) [@Petros\_Pap](https://forum.babylonjs.com/u/Petros_Pap)\
**Post date:** [October 23, 2025, 9:49am UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/12 "2025-10-23T09:49:50Z")

</div>

@georgie A big, BIG THANK YOU!!  
In beginning i see the PG’s and kind disappointed as still have this ugly flickering on movement.. 🙂  
After i pass your commit to AbstractEngine and scene, AND everything run super smooth!!!  
Again thank you!!! 👋

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [October 24, 2025, 5:26pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/13 "2025-10-24T17:26:38Z")

</div>

Awesome glad it is useful! Please note I have slightly updated the parameter names (see the post above that I tagged you in) – now you can enable both highprecisionmatrices and floatingoriginoffsets using the engine creation option ‘useLargeWorldRendering’ 🙂

---

<div class="post-metadata">

**Author:** ![Petros\_Pap](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/petros_pap/32/47817_2.png) [@Petros\_Pap](https://forum.babylonjs.com/u/Petros_Pap)\
**Post date:** [October 25, 2025, 6:20am UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/14 "2025-10-25T06:20:54Z")

</div>

I will check for sure those new options!! 🙂

---

<div class="post-metadata">

**Author:** ![georgie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/georgie/32/46049_2.png) [@georgie](https://forum.babylonjs.com/u/georgie)\
**Post date:** [October 29, 2025, 3:02pm UTC](https://forum.babylonjs.com/t/zoom-and-scaling-issue-mesh-flickers-on-movement/61046/15 "2025-10-29T15:02:09Z")

</div>

Unassigned @georgie on October 29, 2025, 3:02pm UTC


