Hi,I am tying OpenGL and setup two projections: perspective and orthographic.
What I can not understand is why is the asix Y (green) inverted in ortho view.
View is from Z axis. What am I missing?
Code:
glMatrixMode(GL_PROJECTION);
glLoadIdentity;
//for perpective:
gluPerspective(45.0, (Right-Left) / (Bottom-Top), 1, 1000);
gluLookAt(0, 0, 300, 0, 0, 0, 0, 1, 0);
//for orthographic
glOrtho(Left, Right, Bottom, Top, 1, 1000);
gluLookAt(0, 0, 100, 0, 0, 0, 0, 1, 0);
glMatrixMode(GL_MODELVIEW);
glClear(GL_DEPTH_BUFFER_BIT or GL_COLOR_BUFFER_BIT);