PDA

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



Francisco
08-06-2004, 03: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!

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

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

Mikael