Inverted Y axis coordinated system

Started by kakashi, June 15, 2009, 07:57:59 PM

Previous topic - Next topic

kakashi

Hi,

Is normal that the Y axis is positive goes downwards??
is this a bad configuration in the camera or is the engine coordinated system??
which is the coordinated system?
How can I configure to Y positive goes Up and X positive goes right??

Thanks a lot!!

EgonOlsen

As stated in the docs somewhere: x goes right, y goes down and z goes into the screen (all for positive values). That's how it is, there is no way to change this. If you are using another coordinate system for some other third party lib or in your own code, you have to convert between the two, which is pretty easy.
The reason for this order lies in the software renderer. To ease some calculations, i wanted positive z to point into the screen (anything else is highly counter-intuitive to me anyway, but that's just me...). Therefore, jPCT uses the "normal" GL like coordinate system just rotated by 180° around X.