I've been digging for days to try to find an answer to my problem and have come up with nothing. What I'm trying to do is render a screen sized quad in orthographic mode at a certain depth which is greater than 1 to perform certain effects on the image. So here is my OpenGL/Glut setup code:
glutInit(argc, argv);
glutInitWindowSize(Width, Height);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutCreateWindow(argv[0]);
glutDisplayFunc(Display);
glEnable(GL_TEXTURE_2D);
glEnable(GL_DEPTH_TEST);
/* Enable a single OpenGL light. */
glLightfv(GL_LIGHT0, GL_DIFFUSE, LightDiffuse);
glLightfv(GL_LIGHT0, GL_POSITION, LightPosition);
glEnable(GL_LIGHT0);
However, when I try to render anything in orthographic mode beyond 1 on the z-axis it is clipped out. Here is my render code:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glOrtho(0, 1280, 0, 1024, -1.0, 100.0);
glLoadIdentity();
glBindTexture(GL_TEXTURE_2D, texture[1]);
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f);
glVertex3f(-1.0f,-1.0f, 1.0f); // Bottom Left
glTexCoord2f(1.0f, 0.0f);
glVertex3f( 1.0f,-1.0f, 1.0f); // Bottom Right
glTexCoord2f(1.0f, 1.0f);
glVertex3f( 1.0f, 1.0f, 1.0f); // Top Right
glTexCoord2f(0.0f, 1.0f);
glVertex3f(-1.0f, 1.0f, 1.0f); // Top Left
glEnd();
glutSwapBuffers();
So, for example, with this code, if I were to change glVertex3f(X, Y, 1.0f) to glVertex(X, Y, 3.0f), the quad will no longer be displayed.