hi how can i traslate from mouse coords to opengl ones? i want to know if my mouse is over a graphic so i can perform some actions i know how to do all the event checking etc but i dont understand how i should translate the coords so i can check them!
im using the normal windows pointer though not an internal one in my game
whats the best efficent and fastest way of doing this?
read back the depth value (glReadPixels) of the pixel under the mouse and use this value and the mouse positions in gluunproject to get the world position of the mouse.
is the double float precision needed for this?
i thought it should only be used on real critical parts like cientific physics and the so not for just converting something simple like this.
anyways thanks im going to check all this and tell you about it so if i dont want to use glu or glut i can always do my own like on your example ?? what would be better ??