# How to use orthographic view in

**URL:** <https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733>\
**Category:** Questions\
**Created:** [April 26, 2022, 3:04pm UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733 "2022-04-26T15:04:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhavna](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Bhavna](https://forum.babylonjs.com/u/Bhavna)\
**Post date:** [April 26, 2022, 3:04pm UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/1 "2022-04-26T15:04:23Z")

</div>

I am trying to render the plane in an orthographic view but it’s not rendering properly how do I set the camera position to show an object in a proper position

Is this correct application of orthographic camera view:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/f/2f100cf7e4dc968c74d0bcc6ddb3b3e652e190c2.png)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [April 26, 2022, 5:18pm UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/2 "2022-04-26T17:18:13Z")

</div>

Could you share a repro of your issue in your playground ?

---

<div class="post-metadata">

**Author:** ![Bhavna](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Bhavna](https://forum.babylonjs.com/u/Bhavna)\
**Post date:** [April 27, 2022, 5:31am UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/3 "2022-04-27T05:31:36Z")

</div>

Hi, Sure,  
Playground link: [https://playground.babylonjs.com/#JJG6CM#1](https://playground.babylonjs.com/#JJG6CM#1)  
If a ground size is large or small this should look perfectly fitted to the screen or fitted to  
rendering window using an **orthographic camera**

---

<div class="post-metadata">

**Author:** ![ajp](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ajp/32/9504_2.png) [@ajp](https://forum.babylonjs.com/u/ajp)\
**Post date:** [April 27, 2022, 6:55am UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/4 "2022-04-27T06:55:30Z")

</div>

You need to set the mode of your camera to orthographic in your playground: [Babylon.js Playground](https://playground.babylonjs.com/#JJG6CM%232)

```auto
camera.mode = BABYLON.Camera.ORTHOGRAPHIC_CAMERA

```

Does that fix it for you?

---

<div class="post-metadata">

**Author:** ![Bhavna](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Bhavna](https://forum.babylonjs.com/u/Bhavna)\
**Post date:** [April 27, 2022, 12:21pm UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/5 "2022-04-27T12:21:25Z")

</div>

I have tried with the ORTHOGRAPHIC\_CAMERA in code but the object is not fitted to the screen can check the below link for more clarification:

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

what would be my camera position to set the object/plane fitted to the screen/rendering window

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [April 27, 2022, 2:26pm UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/6 "2022-04-27T14:26:41Z")

</div>

In this mode you manually need to adapt camera. orthoBottom, left, right and top to fit your scene.

---

<div class="post-metadata">

**Author:** ![ajp](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ajp/32/9504_2.png) [@ajp](https://forum.babylonjs.com/u/ajp)\
**Post date:** [April 27, 2022, 5:44pm UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/7 "2022-04-27T17:44:30Z")

</div>

You might find something useful in this code I use for my project to fit the camera to bounding box of an object: [Fit camera to boundingbox - #4 by ajp](https://forum.babylonjs.com/t/fit-camera-to-boundingbox/4865/4) specifically the `retarget_and_move_camera_to_include_mesh` function at the bottom.

---

<div class="post-metadata">

**Author:** ![Bhavna](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Bhavna](https://forum.babylonjs.com/u/Bhavna)\
**Post date:** [May 6, 2022, 6:19am UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/8 "2022-05-06T06:19:27Z")

</div>

Hi, Can you please add an orthographic view for the below example it might be more clear to me how to use it  
**[https://playground.babylonjs.com/#JJG6CM#1](https://playground.babylonjs.com/#JJG6CM#1)**

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 6, 2022, 5:18pm UTC](https://forum.babylonjs.com/t/how-to-use-orthographic-view-in/29733/9 "2022-05-06T17:18:28Z")

</div>

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