Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export fix #406

Merged
merged 2 commits into from
Feb 17, 2025
Merged

Export fix #406

merged 2 commits into from
Feb 17, 2025

Conversation

slimbuck
Copy link
Member

This PR updates the compressed export (and publish) to, by default:

  • remove gaussians with alpha < 1 / 255
  • remove gaussians with NaNs or infinites in any of their properties

This is done because we are seeing scenes published which contain a large numbers of invalid gaussian data (in some cases nearly half the scene). These gaussians don't render, but take storage and download space and slow down rendering, significantly in some cases.

@slimbuck slimbuck added the bug Something isn't working label Feb 16, 2025
@slimbuck slimbuck requested a review from a team February 16, 2025 13:25
@slimbuck slimbuck self-assigned this Feb 16, 2025
@willeastcott
Copy link
Contributor

Wouldn't it be better to report warnings/errors on load/import and then give option to fix?

@slimbuck
Copy link
Member Author

Wouldn't it be better to report warnings/errors on load/import and then give option to fix?

Yes would be good to add this too. In some cases values like -Infinity might actually be a valid value, for example for scale. But also we support blind PLY data which user can attach and we pass through unchanged.

We will never want these values in a compressed.ply though, under no circumstance. So I think this step is still needed.

@slimbuck slimbuck merged commit 6901ef3 into playcanvas:main Feb 17, 2025
2 checks passed
@slimbuck slimbuck deleted the export-fix branch February 17, 2025 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants