diff --git a/body-tracking-samples/csharp_3d_viewer/PointCloud.cs b/body-tracking-samples/csharp_3d_viewer/PointCloud.cs index 3f0b0c1a..80db99ff 100644 --- a/body-tracking-samples/csharp_3d_viewer/PointCloud.cs +++ b/body-tracking-samples/csharp_3d_viewer/PointCloud.cs @@ -26,8 +26,8 @@ public static void ComputePointCloudCache(Calibration calibration) { for (int u = 0; u < calibration.DepthCameraCalibration.ResolutionWidth; ++u, k += 3) { - // Divide by 1e6 to store points position per each 1 millimeter of z-distance. - var point = new Vector3(pointCloudBuffer[k], pointCloudBuffer[k + 1], pointCloudBuffer[k + 2]) / 1000000; + // Divide by 1e3 to store points position per each 1 millimeter of z-distance. + var point = new Vector3(pointCloudBuffer[k], pointCloudBuffer[k + 1], pointCloudBuffer[k + 2]) / 1000; pointCloudCache[v, u] = point; } }