PDA

View Full Version : about glReadPixels



xiaomi
03-05-2006, 08:20 PM
I have used glReadPixels to get the z-value of the pixel , but when I use gluUnProject and draw the pixel dot ,the point is not correctly, why ?

iris_raj
03-05-2006, 08:52 PM
Dear xiaomi,

Did you properly Defined Depth characteristics

1. glEnable( GL_DEPTH_TEST );
2. glClearDepth( 1.0 );

Rajesh.R
IRIS, CAIR,
Bangalore

xiaomi
03-06-2006, 12:08 AM
Dear iris_raj :
thanks , and the Depth characteristics has been defined , some of the result is right ,but some is correctly.