I am working on a small game that uses a 2D map (made up out of tiles). I would now like to find out what tile is being selected by the user. As the map can move and scale (glTranslate(), glScale(), etc), I m not entirely sure a direct conversion is possible. So how do I obtain the "map" coordinates from the mouse coordinates on my screen?
I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it ...