How to find the content of gluUnProject.html

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

This one still works.

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

I think the pyopengl manual has the formula you’re looking for

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

Bookmark this page. :slight_smile:

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

It’s far from a complex formula. You can download the OpenGL sample implementation here 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”

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