PDA

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



xcat_2000
01-18-2002, 11:42 PM
Hi, anybody knows how to get the current Z-buffer?

Xiaofeng
01-19-2002, 01: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, 05:47 AM
Yes with format set to GL_DEPTH_COMPONENT

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