im trying to understand how the render2d coordinate system works. im especially trying to reconcile how DirectGui elements are positioned on screen.
The manual seems to contradict itself and it has me really confused. In one place it says:
“The coordinate system of render2d is set up to match that of the mouse inputs: the lower-left corner of the screen is (-1, 0, -1), and the upper-right corner is (1, 0, 1)”
Then in another:
“(Of course, in render2d almost all objects have a Z value of 0, so it doesn’t matter much.)”
the first quote implies the z coordinate of render2d goes left to right. the second implies that the z coordinate goes into the screen.
furthermore, all the documentation on directgui suggests z represents coordinates that are left to right. but in that case, why do objects have a z value of zero? are those coordinates relative to camera?
/confuse