Camera pointing to -Z
Why are cameras usualy implemented pointing to -Z direction, not Z? Is there any technical background behind this or its just an unformal convection?
It has to do with the right-handed coordinate system, positive x and y point right and up respectively and negative z points forward. In a left-handed coordinate system positive z points forward. I believe OpenGL uses a right-handed and DirectX a left-handed coordinate system.
Mussi is right, and it is semantically easier to understand that the Near Plane (z=0) is the plane of your screen and the Far Plane is "deeper" in the screen.
Because in OpenGL and many other 3D API's the z direction is positive pointing out of the screen, we adopt a -z direction as the look-at direction.
Because in OpenGL and many other 3D API's the z direction is positive pointing out of the screen, we adopt a -z direction as the look-at direction.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement