depth buffer info

Does anyone know how to retrieve the depth buffer data from openGL?

Thanks in advance.

–Matt

You have to use glReadPixels (), with format GL_DEPTH_COMPONENT

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.