How can I detect a surface on 3D object by mouse click?

I rendered a 3D object using OpenGL, e.g, a cube.
Is there any method to detect which surface on the cube I choose by mouse click?

thanks a lot…

Yes, there is

you can use the selection buffer (slow on ATI cards) or compute everything yourself (the only way using DirectX).

see http://nehe.gamedev.net/tutorials/lesson33.asp

yes u can
when u click the surafce on the 3d object, u can acquire the x,y,z of the point on the object. based on the topological relationship between object and surface. u can detect the surface that the mouse hit . wish it is useful for u