PDA

View Full Version : Any trick to get a depth buffer image?!



rlopez3d
01-29-2001, 09:44 AM
I need to get depth buffer values for all the pixels in the viewport but glReadPixels(0,0,w,h,GL_DEPTH_COMPONENT,GL_FLOAT,m yBuffer); is too slow.

Is there any trick to do it in a faster way?

mcraighead
01-29-2001, 09:28 PM
GL_UNSIGNED_SHORT or GL_UNSIGNED_INT may very well be faster. It certainly will be much faster on our drivers.

- Matt