# Is there anyway to zoom in closer to model without the viewport clipping through

**URL:** <https://forum.techsoft3d.com/t/is-there-anyway-to-zoom-in-closer-to-model-without-the-viewport-clipping-through/4290>\
**Category:** HOOPS Visualize Web\
**Tags:** how-to\
**Created:** [December 18, 2024, 2:27am UTC](https://forum.techsoft3d.com/t/is-there-anyway-to-zoom-in-closer-to-model-without-the-viewport-clipping-through/4290 "2024-12-18T02:27:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwj8867486](https://avatars.discourse-cdn.com/v4/letter/w/45deac/32.png) [@wwj8867486](https://forum.techsoft3d.com/u/wwj8867486)\
**Post date:** [December 18, 2024, 2:27am UTC](https://forum.techsoft3d.com/t/is-there-anyway-to-zoom-in-closer-to-model-without-the-viewport-clipping-through/4290/1 "2024-12-18T02:27:05Z")

</div>

![chrome-capture-2024-12-18](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/a/ab7c3c0e7623ae50f4ec2a64ab88cafc202e12c4.gif)

I noticed there is an API called `setNearLimit`, but it doesn’t seem to work. Is there any way to minimize the occurrence of blank pages?

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [December 18, 2024, 4:25pm UTC](https://forum.techsoft3d.com/t/is-there-anyway-to-zoom-in-closer-to-model-without-the-viewport-clipping-through/4290/2 "2024-12-18T16:25:38Z")

</div>

Hello @wwj8867486,

As part of the CameraZoomOperator class, there is a function called [setMouseWheelAdjustCameraTarget](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Operators.Camera.CameraZoomOperator.html#Operators.Camera.CameraZoomOperator.setMouseWheelAdjustCameraTarget) which you can try setting to `true`:

```auto
var om = hwv.operatorManager;
var operatorZoom = om.getOperator(Communicator.OperatorId.Zoom);
operatorZoom.setMouseWheelAdjustCameraTarget(true);

```

One quick note about zooming is that zooming _excessively_ can cause distortion in the rendering. This is due to loss of precision of the numerical values for the camera attributes (near limit, position, target, etc.).

Thanks,  
Tino
