please help

Hello,

I have a 3-D line and when i click with mouse on a certain point i want the original coordinates which i have used to plot the line to be retrieved.

plz help !!!.

this is really urgent and important.

any sample code would be highly useful.

vamsee

Hi

gluUnproject can retrieve the world coordinate corresponding to the point you click-on.

If you want more, you’ll have to use the selection mode, which can retrieve you a named object. With the name (an int in fact) you can get your 2 points for the line.

Hope it helps