Search code examples
openglaxes

the axes in a openGL graph


I am new to OpenGL. One simple question. Is it right to say that the axe which goes to the South is the "X" axe, the horitonal axe which goes to the right is the "Y" axe et the last vertical axe which goes to the North is the "Z" axe as in my picture ?

OpenGL axes


Solution

  • If you mean by "OpenGL graph" the default coordinate system OpenGL uses, then this is wrong. By default +x goes to the right, +y to the top of the screen and +z comes out of the screen.

    Usually in CG, you expect the camera to look along the negative z axis.