PDA

View Full Version : How to find the content of gluUnProject.html

devdept
04-23-2008, 02:38 AM
Hi All,

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?

http://www.mevis.de/~uwe/opengl/gluUnProject.html

Thanks so much,

Alberto

-NiCo-
04-23-2008, 03:06 AM
This (http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/glu/unproject.html) one still works.

devdept
04-23-2008, 03:12 AM
Hi Nico,

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.

Alberto

datsua
04-23-2008, 07:31 AM
I think the pyopengl manual has the formula you're looking for

http://pyopengl.sourceforge.net/documentation/manual/gluUnProject.3G.html

Seth Hoffert
04-23-2008, 09:02 AM
Bookmark this (http://opengl.org/sdk/docs/man/) page. :)

devdept
04-24-2008, 02:57 AM
No, guys.

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.

Thanks.

Alberto

-NiCo-
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"

devdept
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.

Alberto