# Camera SEEMS upside down

**URL:** <https://discourse.processing.org/t/camera-seems-upside-down/4787>\
**Category:** Coding Questions\
**Created:** [October 23, 2018, 11:04pm UTC](https://discourse.processing.org/t/camera-seems-upside-down/4787 "2018-10-23T23:04:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grim4d](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/grim4d/32/2056_2.png) [@Grim4d](https://discourse.processing.org/u/Grim4d)\
**Post date:** [October 23, 2018, 11:04pm UTC](https://discourse.processing.org/t/camera-seems-upside-down/4787/1 "2018-10-23T23:04:38Z")

</div>

So I created a grid on the z x plane, and then drew small lines that showed the positive x, y, and z axis as red, green, and blue respectively. When I set the camera up I made the up values 0, 1, 0, which I’m assuming makes the top of the camera point towards \<0,1,0\>, which would make the green line representing the y-axis look like its pointing up. However, the green y-axis looks like its pointing down. The obvious fix for this is to have 0, -1, 0 be the up values, but I want to know why what I originally tried didn’t work.

Here’s my code:

> void setup()  
> {  
> size(1600, 1000, P3D);  
> perspective(radians(50.0f), width/(float)height, 0.1, 1000);  
> camera(50, 50, 50,  
> 0, 0, 0,  
> 0, 1, 0);  
> grid();  
> }
> 
> void draw()  
> {
> 
> }
> 
> private void grid()  
> {  
> //I commented out the main grid, but left it here because it helps me look at the image
> 
> //for(int i = -100; i \<= 100; i += 10)  
> //{  
> // line(-100, 0, i, 100, 0, i);  
> //}
> 
> //for(int i = -100; i \<= 100; i+= 10)  
> //{  
> // line(i, 0, -100, i, 0, 100);  
> //}  
> stroke(255,0,0);  
> line(0,0,0,10,0,0);  
> stroke(0,255,0);  
> line(0,0,0,0,10,0);  
> stroke(0,0,255);  
> line(0,0,0,0,0,10);  
> }
