View Full Version : about glReadPixels
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 ?
03-05-2006, 07:52 PM
Did you properly Defined Depth characteristics
1. glEnable( GL_DEPTH_TEST );
2. glClearDepth( 1.0 );
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.