Open VladimirYugay opened 3 years ago
The depth matrix you are seeing is likely in the "clip" space. To transform to the view space (regular cartesian coords relative to camera position) you need to transform it using the "projection" matrix which should also be captured from the game engine. The units for the view space coordinate system and whether you need to scale the raw depth values to [0, 1] before transforming would depend on how the projection matrix and depth matrix are captured/stored.
To transform clip space to view space for this dataset you can see the example code here
There is some detail in the thesis on page 26 about what clip space is and how the rendering pipeline works.
Hey there,
Thanks for your work.
I'm currently reading depth maps with this and obtain them in .raw format. Do you know any way to convert it properly to the depth in meters? The values inside are integer values, and just normalizing it to [0, 1] range doesn't make much sense.