3D TO 2D coordinatestransformation

hi,
simple quastion:
lets say that I habe a openGL object at (3,4,2) how can I find out what the screencoordinates (1…1024,1…786) an
thanks forward

Try gluProject().