View Full Version : Using gluUnProject
02-17-2000, 04:34 AM
I *really* can't find any way out of the gluUnProject function. http://www.opengl.org/discussion_boards/ubb/confused.gif
What's supposed to be? When is it used?
How is formed the matrix passed in the args?
02-21-2000, 08:56 PM
gluUnProject is used to convert from windows coordinate to object coordinate:
example, a pixel's position might be (1, 1)
if that pixel represents a rendered point in 3D space, what were it's original (x, y, z) values? Solution: gluUnProject() with 1, 1 and you must provide the depth value.
You can use it for tests for one thing. If you don't need it, why worry about it?
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.