View Full Version : mapping windows client coordinate to object coordinate

04-19-2003, 07:37 AM
i want to convert the mouse coordinates ie: client coordinates when the mouse is dragged with Left button down to object coordinates
please help
i have tried gluProject and gluUnProject but not understanding it properly
help plz

04-19-2003, 06:24 PM
What exactly do you not understand?

gluProject maps object coordinates to window coordinates

gluUnProject maps window coordinates to object coordinates

I believe you want gluUnProject.