View Full Version : help with 3D
rusik
02-16-2004, 03: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, 05: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
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.