I am confused with the amount of view generated by glOrtho
. I know that the last two parameters are for the Z axis, the first is the distance between the viewer and the near plane, and the second is the distance between the viewer and the background.
My question is, where is the viewer (camera) located exactly in the Z coordinate?
and in this program link some code that makes the almost flat positive and negative plane negative, in this case we can say that Z-is behind the viewer, and Z + is in front of the viewer?
if yes, try to make the Z-coordinate negative for the entire vertex of one of the triangles, you will notice that it appears, although it is behind the viewer, why?
source share