rangers99
05-05-2002, 11:38 PM
Hi All
Ive set up a scene comprising some geometric primitives. The near plane is set at a distance of 500 units, the far plane 5000 units. All the primitives are completely visible, ie they are within the bounding volume
Im using gluUnproject to get the real world point of each screen pixel.
Why am I getting pixels with z-coords of only 100. How is this possible if the near plane is set at 500. Surely all visible pixels should have a miunimum z-coord of 500 units.
Any ideas what is happenning? Ive checked all the obvious stuff such as checking for background pixels and rembering about the difference between Windows co-ords and OpenGl coords for gluUnproject.
cheers
Ive set up a scene comprising some geometric primitives. The near plane is set at a distance of 500 units, the far plane 5000 units. All the primitives are completely visible, ie they are within the bounding volume
Im using gluUnproject to get the real world point of each screen pixel.
Why am I getting pixels with z-coords of only 100. How is this possible if the near plane is set at 500. Surely all visible pixels should have a miunimum z-coord of 500 units.
Any ideas what is happenning? Ive checked all the obvious stuff such as checking for background pixels and rembering about the difference between Windows co-ords and OpenGl coords for gluUnproject.
cheers