View Full Version : about glReadPixels
xiaomi
03-05-2006, 07: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, 07: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-05-2006, 11:08 PM
Dear iris_raj :
thanks , and the Depth characteristics has been defined , some of the result is right ,but some is correctly.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.