Skip to content

Open3D 0.20.0 ScalableTSDFVolume produces empty geometry from metric float32 depthΒ #7592

Open

Description

@ZenAlexa

Describe the bug

In Open3D 0.20.0 I reproduce empty TSDF geometry from valid metric float32 depth with the official PyPI macOS arm64 wheel. The same reproduction with the official 0.19.0 wheel produces populated voxel and surface geometry. The application uses ScalableTSDFVolume and RGBDImage.create_from_color_and_depth(depth_scale=1.0).

Reproduction

import numpy as np
import open3d as o3d

print("Open3D", o3d.__version__)
for width, height, focal_length in [(32, 24, 28.0), (64, 48, 50.0), (640, 480, 525.0)]:
    color = np.full((height, width, 3), 128, dtype=np.uint8)
    depth = np.full((height, width), 2.0, dtype=np.float32)
    rgbd = o3d.geometry.RGBDImage.create_from_color_and_depth(
        o3d.geometry.Image(color),
        o3d.geometry.Image(depth),
        depth_scale=1.0,
        depth_trunc=5.0,
        convert_rgb_to_intensity=False,
    )
    intrinsic = o3d.camera.PinholeCameraIntrinsic(
        width, height, focal_length, focal_length, (width - 1) / 2, (height - 1) / 2
    )
    cloud = o3d.geometry.PointCloud.create_from_rgbd_image(rgbd, intrinsic)
    print("frame", width, height, "depth", np.asarray(rgbd.depth).min(),
          np.asarray(rgbd.depth).max(), "backproject", len(cloud.points))
    for stride in [1, 4]:
        volume = o3d.pipelines.integration.ScalableTSDFVolume(
            voxel_length=0.05,
            sdf_trunc=0.1,
            color_type=o3d.pipelines.integration.TSDFVolumeColorType.RGB8,
            depth_sampling_stride=stride,
        )
        volume.integrate(rgbd, intrinsic, np.eye(4))
        print("stride", stride,
              "cloud", len(volume.extract_point_cloud().points),
              "voxels", len(volume.extract_voxel_point_cloud().points),
              "mesh", len(volume.extract_triangle_mesh().vertices))

The input is a 2-meter plane, the pose is identity, and RGBDImage.depth contains float32 values of exactly 2.0. Direct RGBD backprojection produces 768, 3072, and 307200 points for the three sizes.

Observed output

Open3D version Width Height Depth sampling stride Point-cloud points Voxel points Mesh vertices
0.20.0 32 24 1 0 0 0
0.20.0 32 24 4 0 0 0
0.20.0 64 48 1 0 0 0
0.20.0 64 48 4 0 0 0
0.20.0 640 480 1 0 0 0
0.20.0 640 480 4 0 0 0
0.19.0 32 24 1 1564 6264 1564
0.19.0 32 24 4 1518 6076 1518
0.19.0 64 48 1 1900 7836 1900
0.19.0 64 48 4 1900 7836 1900
0.19.0 640 480 1 1728 7184 1728
0.19.0 640 480 4 1728 7184 1728

Source trace

An internal depth_scale=1.0 in the TSDF activation call would align the point projection with the metric RGBD input. Patch compilation remains pending. This report concerns volume activation and metric-depth normalization. #7580 concerns nearest-depth pixel lookup during voxel integration.

Expected behavior

Valid metric RGBD frames populate the TSDF volume and produce finite surface geometry with the existing public integration API.

Environment

  • macOS 26.4, build 25E246, arm64
  • Python 3.11.16
  • NumPy 1.26.4
  • Official PyPI wheels for Open3D 0.20.0 and 0.19.0
  • CPU integration; Open3D 0.20 build reports BUILD_CUDA_MODULE=False

Our existing application scenarios cover asynchronous depth integration, map-epoch resets, exact integration journals, progressive replay, and reconstruction scoring. Four TSDF-dependent scenarios fail with 0.20.0 due to empty geometry. The complete existing suite finishes with 296 passed and 2 skipped on 0.19.0. The isolated reproduction above uses Open3D and NumPy.

Activity

  1. butkach commented on Oct 1, 2026

    @butkach

    I faced with this problem too. It seems that float depth scaled twice and test cases don't cover such cases.

  2. connorhazen commented on Oct 13, 2026

    @connorhazen

    +1 found this today, depth scaled twice, while upgrading packages

  3. frankchengm commented on Oct 29, 2026

    @frankchengm
    Contributor
    • I want to know the reason why the hard-coded 1000 scale was written from the beginning, and whether it really matters. Therefore, I found the PR that merged the commit f76420e: Pull Request #106. It showed that the author tested his code with the Redwood dataset, and its depth unit is mm, with two bytes per channel, which explains two things at a time: why 1000, and why in the CreateFromDepthImage it only applied scale when byte per channel is 2.
    • Therefore, I loosely reckon that the hard-coded 1000 is an inadvertent oversight, and it should be set to 1 to retain the depth size in ScalableTSDFVolume::Integrate as the PR does (Preserve metric RGBD depth during scalable TSDF activationΒ #7594)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions