PDA

View Full Version : Displaying Depth Buffer



Lucky
10-30-2004, 02:36 AM
How can I display content of depth buffer?
I tried read Z to texture and then draw quad with this texture, but it does't work :(

mikael_aronsson
10-30-2004, 10:44 AM
Hi !

yes it does work, just make sure that you have the correct code, there is no problem to put the contents of the depth buffer in a texture, but make sure that you specify the correct format in all function calls and so on.

Could be a little more specific on what doesn't work ?

Do you get a quad and if you do what does it look like ?

Mikael