how to get the data of hidden-surfaces from depth buffer????

I use depth test to complete the hidden-lines and hidden-surfaces removal.Now I want to get the data of hidden-lines and hidden-surfaces from the depth_buffer.such as the information of vertexs , color ,etc.
Is there any good advice??

You can’t get this information back. The depth buffer algorithm just draws visible surfaces over the invisible ones, overwriting whatever was there…

Why do you want that information? Perhaps there’s a simpler solution to your problem.

Can I read visible surfaces information from the buffer?? which one is OK .


Try the default.
Try them all!
Whip up some java and have a ball!

The default is a win-win scenario. On good authority I do have it. Yes, that I do.
:wink: :stuck_out_tongue: :smiley: