PDA

View Full Version : how to get the data of hidden-surfaces from depth buffer????



marshallcp
04-25-2006, 06:38 PM
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??

Overmind
04-26-2006, 10:34 AM
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.

marshallcp
04-26-2006, 09:27 PM
Can I read visible surfaces information from the buffer?? which one is OK .

04-26-2006, 10:23 PM
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.;) :p :D