Defines a depth sensor's functional range.
Only points that lie within the range [min_depth, max_depth]
will register meaningful values.
- Note
- It's important to carefully coordinate depth range and clipping planes. It might seem reasonable to use the depth range as clipping planes, but that would be a mistake. Objects closer than the depth range's minimum value have an occluding effect in reality. If the near clipping plane is set to the minimum depth range value, those objects will be clipped away and won't occlude as they should. In essence, the camera will see through them and return incorrect values from beyond the missing geometry. The near clipping plane should always be closer than the minimum depth range. How much closer depends on the scenario. Given the scenario, evaluate the closest possible distance to the camera that geometry in the scene could possibly achieve; the clipping plane should be slightly closer than that. When in doubt, some very small value (e.g., 1 mm) is typically safe.