I created an object by the combination of large number of triangles using glBegin function. My question is how to get the x & y(z if possible)OpenGL coorinates of the mouse clicked point to put a color in the clicked point? not the X & Y screen points in the mouse click .Is it possible ?
I think what you need is to use the selection buffer. Its explained in the opengl superbible and the redbook. Im sure there are tutorials on the subject as well.
-SirKnight
[This message has been edited by SirKnight (edited 12-31-2001).]
i would recommend building a ray from the camera position along the clicked point, and cutting the ray with the triangles.
building the ray is easy, use gluUnProject();