Vincent22
12-08-2011, 09:00 AM
Hi everyone, I'm a bit confused about OGL coordinates.
I read that the origin in OGL is in the bottom left corner, but when I draw a vertex in 0,0,0 position the vertex is in the center of my window.
Is it correct?
That's important because I need to retrive mouse position when clicking the left button, I use GLUT method and the 0 position is in the top left corner, and so it's difficoult "normalize" mouse coordinates with OGL coordinates.
Thank you.
I read that the origin in OGL is in the bottom left corner, but when I draw a vertex in 0,0,0 position the vertex is in the center of my window.
Is it correct?
That's important because I need to retrive mouse position when clicking the left button, I use GLUT method and the 0 position is in the top left corner, and so it's difficoult "normalize" mouse coordinates with OGL coordinates.
Thank you.