# Wrap frustum around an object? 🎥

**URL:** <https://discourse.threejs.org/t/wrap-frustum-around-an-object/6300>\
**Category:** Questions\
**Tags:** camera, geometry\
**Created:** [February 24, 2019, 7:01am UTC](https://discourse.threejs.org/t/wrap-frustum-around-an-object/6300 "2019-02-24T07:01:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jojoghaida](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jojoghaida/32/4179_2.png) [@jojoghaida](https://discourse.threejs.org/u/jojoghaida)\
**Post date:** [February 24, 2019, 7:01am UTC](https://discourse.threejs.org/t/wrap-frustum-around-an-object/6300/1 "2019-02-24T07:01:44Z")

</div>

Hey,

I’m developing an app that showcases a few objects in 3D space. As the users clicks through an interface to preview said objects, I need each object to fill the camera’s frustum. I already figured out how to center the objects in the view but they are too far away / small on screen. Any tips or resources?

EDIT: for orthographic camera !

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 24, 2019, 11:51am UTC](https://discourse.threejs.org/t/wrap-frustum-around-an-object/6300/2 "2019-02-24T11:51:18Z")

</div>

Check out how the camera is configured in the following viewer: [https://gltf-viewer.donmccurdy.com/](https://gltf-viewer.donmccurdy.com/)

The idea is to make the adjustments based on the bounding box of your loaded object. The relevant code is:

> <https://github.com/donmccurdy/three-gltf-viewer/blob/68e8bfbf0087e7778c9a3e317156564efbdde0e6/src/viewer.js#L218-L246>

---

<div class="post-metadata">

**Author:** ![jojoghaida](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jojoghaida/32/4179_2.png) [@jojoghaida](https://discourse.threejs.org/u/jojoghaida)\
**Post date:** [February 25, 2019, 2:52am UTC](https://discourse.threejs.org/t/wrap-frustum-around-an-object/6300/3 "2019-02-25T02:52:00Z")

</div>

Sorry I forgot to mention this is for an orthographic camera display. I will update the thread title… thank you for this but moving an orthographic camera’s position will have no effect on scale of the objects shown.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [February 25, 2019, 9:50am UTC](https://discourse.threejs.org/t/wrap-frustum-around-an-object/6300/4 "2019-02-25T09:50:35Z")

</div>

You might want to adjust the [zoom](https://threejs.org/docs/index.html#api/en/cameras/OrthographicCamera.zoom) property instead. This is the way how `OrbitControls` implements dollying (zooming) with an orthographic camera.
