jacksmash
12-11-2007, 02:57 PM
ok... if I have my viewing perspective defined as:
gluPerspective(40.0, 1.0, 1.0, 500.0);
and I draw a quad like this:
glEnable(GL_QUADS);
glVertex3f(-100.0, -100.0, 0.0);
glVertex3f(-100.0, 100.0, 0.0);
glVertex3f(100.0, 100.0, 0.0);
glVertex3f(100.0, -100.0, 0.0);
glEnd();
Then where does it get drawn? Is z=0.0 right where the camera is? If so, then the quad would not be viewable as drawn. Is this correct?
gluPerspective(40.0, 1.0, 1.0, 500.0);
and I draw a quad like this:
glEnable(GL_QUADS);
glVertex3f(-100.0, -100.0, 0.0);
glVertex3f(-100.0, 100.0, 0.0);
glVertex3f(100.0, 100.0, 0.0);
glVertex3f(100.0, -100.0, 0.0);
glEnd();
Then where does it get drawn? Is z=0.0 right where the camera is? If so, then the quad would not be viewable as drawn. Is this correct?