PDA

View Full Version : Hi, anybody knows how to get the current Z-buffer?



xcat_2000
01-19-2002, 12:42 AM
Hi, anybody knows how to get the current Z-buffer?

Xiaofeng
01-19-2002, 02:09 AM
Originally posted by xcat_2000:
Hi, anybody knows how to get the current Z-buffer?

Hi, I think glReadPixels may be your solution.

dorbie
01-19-2002, 06:47 AM
Yes with format set to GL_DEPTH_COMPONENT

xcat_2000
01-19-2002, 10:25 AM
Thx a lot! This is very useful to my project.