Skip to content

Conversation

@slimbuck
Copy link
Member

Fixes playcanvas/supersplat#485

We recently moved covariance vector calculation from cpu to gpu (in #7380) in order to gain precision during render.

This change included a subtle rotation bug which is fixed in this PR.

@slimbuck slimbuck added bug Something isn't working area: graphics Graphics related issue labels Apr 23, 2025
@slimbuck slimbuck requested review from a team and Copilot April 23, 2025 14:53
@slimbuck slimbuck self-assigned this Apr 23, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a subtle rotation bug in the gsplat rendering by clamping the sqrt argument to ensure a non-negative value.

  • Updated the unpackRotation function to use sqrt(max(0.0, 1.0 - dot(packed, packed))), which prevents potential negative values under the square root.

@slimbuck slimbuck changed the title Gsplat render fix Gsplat rotation fix Apr 23, 2025
@slimbuck slimbuck merged commit 2e8c8a0 into playcanvas:main Apr 23, 2025
7 checks passed
@slimbuck slimbuck deleted the gsplat-render-fix branch April 23, 2025 14:56
slimbuck added a commit that referenced this pull request Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rendering Artifacts in Newer Versions of SuperSplat

2 participants