# Camera FOV scaling

**URL:** <https://forum.babylonjs.com/t/camera-fov-scaling/49817>\
**Category:** Questions\
**Tags:** camera\
**Created:** [April 18, 2024, 5:20pm UTC](https://forum.babylonjs.com/t/camera-fov-scaling/49817 "2024-04-18T17:20:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lonerobot](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lonerobot/32/7988_2.png) [@Lonerobot](https://forum.babylonjs.com/u/Lonerobot)\
**Post date:** [April 18, 2024, 5:20pm UTC](https://forum.babylonjs.com/t/camera-fov-scaling/49817/1 "2024-04-18T17:20:36Z")

</div>

Hello. I wanted to ask if it’s possible with the babylon camera to perform a kind of “field of view compensation” - so if the FOV is changed, the object stays in the same position.

this is the kind of effect I am after -

![fotografie-lenzen](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/f/9f45ce20e53369297d8e15bfd7cda7a0d5e1ec02.gif)

so you can see the effect the changing of the value on the camera’s perspective, but without the object moving in 3d space.

---

<div class="post-metadata">

**Author:** ![SvenFrankson](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/svenfrankson/32/29446_2.png) [@SvenFrankson](https://forum.babylonjs.com/u/SvenFrankson)\
**Post date:** [April 18, 2024, 6:06pm UTC](https://forum.babylonjs.com/t/camera-fov-scaling/49817/2 "2024-04-18T18:06:53Z")

</div>

Hi,

Yes it’s doable, you can change camera fov and distance from subject

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

(here when you zoom in/out the fov updates so the object keeps its original size on screen)

---

<div class="post-metadata">

**Author:** ![Lonerobot](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lonerobot/32/7988_2.png) [@Lonerobot](https://forum.babylonjs.com/u/Lonerobot)\
**Post date:** [April 19, 2024, 9:39am UTC](https://forum.babylonjs.com/t/camera-fov-scaling/49817/3 "2024-04-19T09:39:14Z")

</div>

hi @SvenFrankson - That’s absolutely perfect! thanks a million.
