HoloLens2-ResearchMode-Unity
HoloLens2-ResearchMode-Unity copied to clipboard
Center point limited to short distance even when long sensor loop is active
When calculating the center point in the long depth sensor loop, the position of the depth center is still limited by depthCamRoi.depthFarClip, which is the far clip of the short sensor.
As a result, the center point is not calculated beyond .8m, even though the long throw sensor sees much further.
Probable fix (will try it later and create a PR if it works):
Line 500:
if (depth > pHL2ResearchMode->depthCamRoi.depthNearClip && depth < pHL2ResearchMode->depthCamRoi.depthFarClip)
should be
if (depth > 200)