convert a point 2D to a point3D

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!

Hi !

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