Jump to content

How to grab depth buffer for some camera


photo

Recommended Posts

For each frame, I need to process camera depth buffer on CPU via my spetial algorithm. How can I do it fast on 2.2.1 framework version?

 

Second question is, how to disable render steps after building depth buffer? I need only depth buffer.

Link to comment

Hi Borisov,

 

I'm afraid, without additional engine internal modifications it's currently not possible to disable render steps after depth buffer. Also, there is no way to get depth texture via engine API. It's possible hovewer, to visualize depth buffer (for example, create a custom post effect shader and render viewport with this shader to texture), but it will cause precision lost.

 

If you can provide us more technical information about your needs - it will be very helpful (you can use our Skype channel as well to communicate directly).

 

Thanks!

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

Link to comment
×
×
  • Create New...