Jump to content

depth buffer cleared but color buffer exist


photo

Recommended Posts

Posted

Hi,

 

We are reading depth buffer and color buffer for every single frame in our application, the color buffer is ok, but the depth buffer got cleared, it showed FF, which is most far away...

is it manually cleared in the engine code? If so, could you tell me how to enable the depth buffer to avoid cleared after rendering?

 

Thanks,

Ian

Posted

Hi Ian,

 

There are at least two depth buffers available (native and internal) and it is not completely clear how you are reading and from which exactly buffer.

 

Could you please provide us a small test scene with that behavior so we can debug it?

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

The way we are doing it, is directly read the DX11 depth buffer texture in Swap(), and after we copy it to our own buffer, we found it is FF.

  • 3 weeks later...
Posted

native depth buffer, accessed from dx11 api. Unfortunately, we cannot provide a small sample.

  • 2 weeks later...
Posted

Hi Ian,

 

Maybe some parts of code you can show us how exactly you are reading this texture? It is really hard to suggest anything without seeing the actual use case or sample, sorry.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...