# Adjust the camera's FOV Correctly

**URL:** <https://discourse.slicer.org/t/adjust-the-cameras-fov-correctly/31268>\
**Category:** Community\
**Tags:** python\
**Created:** [August 21, 2023, 11:39pm UTC](https://discourse.slicer.org/t/adjust-the-cameras-fov-correctly/31268 "2023-08-21T23:39:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [August 21, 2023, 11:39pm UTC](https://discourse.slicer.org/t/adjust-the-cameras-fov-correctly/31268/1 "2023-08-21T23:39:34Z")

</div>

I created a linear transform for the camera,

and when I moved horizontally,

as shown in the picture,

the object suddenly disappeared.

I knew that when the camera was too close to the object,

it would be out of the FOV,

but when I lengthened the distance, the object should be smaller and smaller,

not suddenly disappear.

Friends, can anyone explain it for me?

![1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/8/a8059c783fd5b7ccd9f5c3fc823bdc4c6bb44099.gif)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 21, 2023, 11:41pm UTC](https://discourse.slicer.org/t/adjust-the-cameras-fov-correctly/31268/2 "2023-08-21T23:41:28Z")

</div>

It’s probably the clipping range.

Try something like this:

> <https://github.com/Slicer/Slicer/blob/main/Modules/Scripted/Endoscopy/Endoscopy.py#L331>

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [August 21, 2023, 11:46pm UTC](https://discourse.slicer.org/t/adjust-the-cameras-fov-correctly/31268/3 "2023-08-21T23:46:07Z")

</div>

Thank you very much for your real-time reply，Mr Pieper

I will try 👍
