PDA

View Full Version : help with 3D



rusik
02-16-2004, 04:24 AM
hi there...
i got one problem...
how can i transform cursor coordinates(2D)...
to eye coordinates (i use gluLookAt() func)...

mikael_aronsson
02-16-2004, 06:33 AM
Hi !

Quick answer, you can't...

A 2D coordinate cannot be converted to 3D unless you specify the third coordinate value or else you get a wild guess only.

But you may want to have a peek at the gluProject and gluUnproject functions.

Mikael