# Inability of the web viewer to draw the whole model after we change the position of the model

**URL:** <https://forum.techsoft3d.com/t/inability-of-the-web-viewer-to-draw-the-whole-model-after-we-change-the-position-of-the-model/3711>\
**Category:** HOOPS Visualize Web\
**Created:** [May 27, 2024, 11:46am UTC](https://forum.techsoft3d.com/t/inability-of-the-web-viewer-to-draw-the-whole-model-after-we-change-the-position-of-the-model/3711 "2024-05-27T11:46:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 27, 2024, 1:37pm UTC](https://forum.techsoft3d.com/t/inability-of-the-web-viewer-to-draw-the-whole-model-after-we-change-the-position-of-the-model/3711/2 "2024-05-27T13:37:11Z")

</div>

Hello @dayana,

In your implementation, it looks like the camera is clipping the model in certain sections. This can happen when manually setting the camera attributes and can also occur depending on the model being loaded. One way to solve this is to use the [ViewOrientation](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/enum/Communicator.ViewOrientation.html#vieworientation) enum which has pre-defined orientations for the view right out-of-the-box.

If you still want to manually calculate the camera object, we recommend that the distance from the camera position to the camera target is 2.5 times the field width. In a different toolkit, we provide more [details](https://docs.techsoft3d.com/3df/latest/prog_guide/3dgs/03_2_viewing_modelling_cameras.html#camera-setup-guidelines) on this.

Also available in the forum is this [post](https://forum.techsoft3d.com/t/sample-code-set-optimized-camera-position-and-camera-target-ratio-in-3df-part-viewer/1418) which provides a short code snippet. Granted, the code is for Visualize but the logic is straigthforward.

Thanks,  
Tino

---

_[View the full topic](https://forum.techsoft3d.com/t/inability-of-the-web-viewer-to-draw-the-whole-model-after-we-change-the-position-of-the-model/3711)._
