View Full Version : How to find the content of gluUnProject.html
04-23-2008, 02:38 AM
Anybody knows how to find the content of this page that is referenced many times on the internet (try googling "gluUnProject.html") and is not available any more?
Thanks so much,
04-23-2008, 03:06 AM
This (http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/glu/unproject.html) one still works.
04-23-2008, 03:12 AM
The page didn't contain the reference manual for the gluUnproject() function but an important formula to convert screen coords in world coord in perspective view.
I need to find the content of this particular page.
04-23-2008, 07:31 AM
I think the pyopengl manual has the formula you're looking for
04-23-2008, 09:02 AM
Bookmark this (http://opengl.org/sdk/docs/man/) page. :)
04-24-2008, 02:57 AM
All the links refer to standard gluUnproject reference manuals.
I am looking for a complex formula to map the screen coordinates to the logaritmic perspective view depth scale.
04-24-2008, 03:18 AM
It's far from a complex formula. You can download the OpenGL sample implementation here (ftp://oss.sgi.com/projects/ogl-sample/download/ogl-sample.20000807.tgz) and have a look at the glu source code.
The part you're looking for is in the file "/main/gfx/lib/glu/libutil/project.c"
04-24-2008, 03:27 AM
The formula is the following:
winZ = 0.5 + (((far + near) - (2 * far * near) / fz)) / (2 * (far - near));
And I am trying to grasp all the concepts behind it. The page I was lookign for explain them.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.