Hi everybody,
I am trying to figure out the depth map in Unity.
It seems the depth values I am getting are not linear?
I am reading the depthmap values like this (code screenshot).
Basically I am taking the Depth map from the zed rendering plane which is this:
depth = zedCamera.CreateTextureMeasureType(sl.MEASURE.DEPTH, resolution);
Then I am looking at a specific point in space to check the actual depth value.
As you can see those values are not linear. It seems to be some sort of exponential curve, which does not make sense. I doublechecked with the greyscale values in the depth map and I see a similar exponential augmentation towards zero when you move further away from the camera.
Is there anybody who could point me in the right direction to get actual good solid linear depth information out of the Unity sdk?
Thank you so much in advance