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 & HelpOpenGL and 3D Libraries › A right handed, Z "up" coord sys
Page Index Toggle Pages: 1
A right handed, Z "up" coord sys (Read 615 times)
A right handed, Z "up" coord sys
May 13th, 2006, 7:57am
 
Processing uses a left handed coordinate system, with XY being the 2D plane, and Z being out of the plane toward the viewer.

How would I convert this to a right handed system?  Can I simply do a scale(1,-1,1) to flip the Y axis?  Or scale(1,1,-1) to flip the Z axis?  Presumably I could then rotateX(radians(+/-90)) to get the Z axes pointed "up", right?

And if I do this, will it confuse camera/view systems like OCD which calculates azimuth from the X axis and elevation from the XZ plane?

Sorry to be dumb on this but its a bit confusing!

Owen
Re: A right handed, Z "up" coord sys
Reply #1 - May 13th, 2006, 10:31pm
 
All of the methods above will do what you describe (scale(1,-1,1) will flip Y, scale(1,1,-1) will flip Z).

And yes, I am fairly certain it will confuse OCD. However OCD provides you with a nice camera-up axis setting so you can set the orientation however you want!

Check out the documentation for OCD (look for its constructors).

Good luck.
Page Index Toggle Pages: 1