# Orthographic camera not working

**URL:** <https://discourse.processing.org/t/orthographic-camera-not-working/32950>\
**Category:** Beginners\
**Created:** [October 20, 2021, 11:39am UTC](https://discourse.processing.org/t/orthographic-camera-not-working/32950 "2021-10-20T11:39:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [October 20, 2021, 11:39am UTC](https://discourse.processing.org/t/orthographic-camera-not-working/32950/1 "2021-10-20T11:39:05Z")

</div>

I’m wondering if the orthographic camera is broken.  
I used the settings found here:

> **[Getting started with WebGL in p5 · processing/p5.js Wiki](https://github.com/processing/p5.js/wiki/Getting-started-with-WebGL-in-p5#camera-and-view)**
>
> p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Proces...

I just don’t see anything appearing. Could someone confirm?

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [October 20, 2021, 2:53pm UTC](https://discourse.processing.org/t/orthographic-camera-not-working/32950/2 "2021-10-20T14:53:00Z")

</div>

interesting. indeed the example doesn’t work for me until I changed the code like (I added movement too)

```javascript
function setup(){
  createCanvas(500,500,WEBGL);
  ortho(-width, width, height, -height/2, 0.01, 1000);
}
function draw(){
  box(30);
  translate(100,100,-100);
  rotate(millis()*0.01, [1,1,0]);
  box(30);
}

```

so something is wrong with the clipping planes it seems. could you open an issue on [github](https://github.com/processing/p5.js/issues) and link to this thread so other contributors can take a look? thanks!
