How to use gluUnProject ?

Does somebody know how to use gluUnProject to get where on axes x,z,y did i click ?

See glunproject i think gives you the screen space x,y coordinates depending on the z value you send to it, if you sent it the far clipping plane and the near clipping plane values seperately then you can interpolate based on the z value you have to get the screen space x,y and then use the inverse matrix transforms to get the output you need…
this is the way i made it work, though i did not learn to make the Z coordinate work properly…if you find out please do post it…

Thanks
ae97004

Can you please write here some example ?
Thanks Jirka