Hey all.
I’m trying to learn this crazy coordinate system thing, and a great example that would help me would be to figure out an equation that calculates a point in the viewport from a real-world number.
For example:
How do I find the bottom of the screen?
I know what the window size is, and what the z coord is. How would I translate that to a vector point?
So far I have this information:
Window Size: 640x400
z = -10
Point I’m trying to get to: 100% (of any direction within the viewport)
How would I translate that into a floating point vector of the top,right, etc. of the screen?
Thanks so much for any insight you can supply me!
j