PBuffers have a z buffer and possibly a stencil buffer right?
Could I use the textures z buffer somehow when rendering in the main DC? like maybe compare the textures z buffer value with the curent DC z buffer value?
Originally posted by game_cy:
PBuffers have a z buffer and possibly a stencil buffer right?
If you create a pbuffer with a pixelformat that supports them, then yes.
Could I use the textures z buffer somehow when rendering in the main DC?
Textures themselves don’t have a z-buffer, pbuffers do. You can bind a texture to the z-buffer of the pbuffer(NV_render_depth_texture). And yes, that texture could be used in your main DC.
like maybe compare the textures z buffer value with the curent DC z buffer value?
Using a fragment program you can compare values in a depth texture with incoming fragments depth value.
[This message has been edited by roffe (edited 10-31-2003).]