google-deepmind / lab

A customisable 3D platform for agent-based AI research
Other
7.11k stars 1.37k forks source link

How to convert the raw depth values to real values? #222

Open student-petercai opened 3 years ago

student-petercai commented 3 years ago

I find the depth values are integers below 255, how do I convert them to the same scale as the agent coordinate?

unnati914 commented 3 years ago

Could i solve this

tkoeppe commented 3 years ago

@charlesbeattie said that the depth buffer "just exposes the renderer depth buffer cast to an unsigned byte. It is linear, but to get accurate depths they would need to use raycasts." I'm not entirely sure what to make of this, I'm afraid, I'm not very familiar with that aspect of the system.