PDA

View Full Version : depth buffer info



mcampbel
07-28-2000, 06:17 AM
Does anyone know how to retrieve the depth buffer data from openGL?

Thanks in advance.

--Matt

Carlos
07-30-2000, 01:53 PM
You have to use glReadPixels (), with format GL_DEPTH_COMPONENT

mcampbel
07-30-2000, 02:04 PM
Thanks man, I figured it out like 5 minutes after I posted the question. I just hadn't noticed the GL_DEPTH_COMPONENT flag before.