Hello!
I’m writing a simple space invaders game as a learning exercise using OpenGL in 3d. I can’t work out how to covert the screen X,Y coordinates of the mouse into the usual OpenGL coordinates (the arbitrary ones where centre is 0,0,0 and the unit cube goes -0.5 to +0.5 in all directions). I want player control by mouse, but this is holding me back. I found one example online but it was hugely complex with multiple functions.
Thanks,
Steve
