Skip to content

Conversation

@ztffn
Copy link

@ztffn ztffn commented Dec 17, 2025

This patch adds support for PLY files that contain additional elements beyond the standard vertex data, such as camera intrinsic/extrinsic matrices embedded by tools like Apple's SHARP.

Currently, the viewer fails to load PLY files from SHARP and other tools that embed camera or metadata elements in the PLY format, showing 'offset is outside the bounds of the DataView' errors.

The fix parses properties only within vertex elements while ignoring additional elements, and limits the DataView to the exact vertex data size to prevent bounds errors. This maintains full backward compatibility with standard Gaussian splat PLY files.

Tested with both standard PLY files (which continue to work unchanged) and SHARP-generated PLY files (which now load successfully). No performance impact on existing functionality.

This patch adds support for PLY files that contain additional elements
beyond the standard vertex data, such as camera intrinsic/extrinsic
matrices embedded by tools like Apple's SHARP.

Changes:
- Parse properties only within vertex elements, ignoring others
- Limit DataView to exact vertex data size to prevent bounds errors
- Maintain full backward compatibility with standard PLY files

Fixes issues with PLY files from SHARP and other tools that embed
camera or metadata elements in the PLY format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant