Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions body-tracking-samples/csharp_3d_viewer/PointCloud.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down