View Full Version : convert a point 2D to a point3D

08-06-2004, 04:21 AM
Hi All,

I would like to know if exist a way to convert a point 2D (cursor of the mouse) to a point 3D of my graph. I'm designing a programa to show charts in 3D avec surfaces, points and lines.
And I need to take the point 3D to show the value in each position of the mouse over the graph.

Thank you!

08-06-2004, 06:58 AM
Hi !

You can use gluProject and gluUnProject to convert between 2D to 3D and 3D to 2D.