In computer graphics its called SELECTION or PICKING.
OpenGL provides built in functionality for this ( glRenderMode(GL_SELECT) ) but you must not use it as it can be slow and OpenGL themselves have said they regret implementing it in the first place.
So what to use?
1) Colour coded picking @ http://www.lighthouse3d.com/opengl/picking/index.php3?color1
2) Transform your 2D mouse click point (xm,ym) into a ray in your 3D world and do collision detection with each of your objects (Simple in the case of 'tiles') (You might use gluUnproject)
Okay, if i do the color coded picking, Lets say were using the color light green, is there 3000 different colored light greens that would look the same to the eye? even by adjusting each tile's color up by a unnoticible notch, but 3000 times?OpenGL provides built in functionality for this ( glRenderMode(GL_SELECT) ) but you must not use it as it can be slow and OpenGL themselves have said they regret implementing it in the first place.
So what to use?
1) Colour coded picking @ http://www.lighthouse3d.com/opengl/picking/index.php3?color1
2) Transform your 2D mouse click point (xm,ym) into a ray in your 3D world and do collision detection with each of your objects (Simple in the case of 'tiles') (You might use gluUnproject)




