View Full Version : about glReadPixels
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 ?
03-05-2006, 08:52 PM
Did you properly Defined Depth characteristics
1. glEnable( GL_DEPTH_TEST );
2. glClearDepth( 1.0 );
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.