taichi-dev / taichi

Productive, portable, and performant GPU programming in Python.
https://taichi-lang.org
Apache License 2.0
25.56k stars 2.29k forks source link

Having trouble retrieving the real distances from camera's eye using depth. #8571

Open IanYangChina opened 4 months ago

IanYangChina commented 4 months ago

Hi,

I'm trying to reconstruct point clouds from the depth information rendered by GGUI. However, I'm having trouble reversing the z-buffering operations that are done by the rendering backend. I have tried several methods but the reconstructed real distances from the camera's eye have been unrealistic. Does anyone know how exactly the depth provided by the GGUI render is calculated? Thanks a lot!