We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Camera settings and Y axis
Page Index Toggle Pages: 1
Camera settings and Y axis (Read 375 times)
Camera settings and Y axis
Dec 7th, 2007, 11:06am
 
Hi all, I was just wondering :

If the 'up vector' of my camera is (0, 1, 0) - as specified in the last 3 arguments of the camera constructor - then why is the Y-axis down on the image? I don't get it...

Code:
size(200, 200, P3D);
background(255);
camera(10, 20, 50, 0, 0, 0, 0, 1, 0);
stroke(255, 0, 0); line(0, 0, 0, 100, 0, 0);
stroke(0, 255, 0); line(0, 0, 0, 0, 100, 0);
stroke(0, 0, 255); line(0, 0, 0, 0, 0, 100);
stroke(0); fill(200); box(10);
Re: Camera settings and Y axis
Reply #1 - Dec 7th, 2007, 1:56pm
 
yes it is somewhat confusing, but like the xy canvas the positive y is down.

0  1

1

http://processing.org/reference/environment/#Coordinates
Page Index Toggle Pages: 1