Hi, anybody knows how to get the current Z-buffer?

Hi, anybody knows how to get the current Z-buffer?

Originally posted by xcat_2000:
Hi, anybody knows how to get the current Z-buffer?

Hi, I think glReadPixels may be your solution.

Yes with format set to GL_DEPTH_COMPONENT

Thx a lot! This is very useful to my project.