I am trying to use gluUnProject and seem to be having trouble with the winZ value. I did an experiment using gluProject to see what kind of winZ value it would produce and they seem to be VERY nonlinear. For example, if an object is half-way between the near and far clipping planes (which are 1 to 1000), I would expect to get a z-value of 0.5 but that isn’t the case, its more like 0.999 or something. It appears that the near clipping plane starts with a winZ of zero (which is true by definition) but quickly accelerates towards 1 in just a short distance.
Can anyone please explain what’s going on here? Thank you.