Ok, I am a little confused on how to use z coordinates. The following code does not display a yellow triangle. When I remove the glOrtho call and change the z coordinates of the vertices back to 0.0 from 2.0 it displays. I would have expected changing all three z coordinates to affect the size of the triangle (similar to a scale). What am I missing here?
Should these triangles appear as the same size in the view? OR asked another way, changing the Z coordinate should in fact change the apparent size of the triangle, correct?
[QUOTE=devonM;1245352]
Should these triangles appear as the same size in the view? OR asked another way, changing the Z coordinate should in fact change the apparent size of the triangle, correct?[/QUOTE]
Okay. The simple mistake in my understanding was that when using orthographic projection altering the Z coordinate does not change the size of the object whereas perspective projection does. :doh: