Skip to content

Fix incorrect numSplats in lod-on-demand example#311

Open
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:fix-lod-on-demand-example
Open

Fix incorrect numSplats in lod-on-demand example#311
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:fix-lod-on-demand-example

Conversation

@mrxz
Copy link
Copy Markdown
Collaborator

@mrxz mrxz commented Apr 21, 2026

When pressing the "Change non-LoD splat colors" button while the LoD splats were being shown, only a subset of the underlying splat colours were changed. This was caused by the fact that SplatMesh.numSplats reflects the number of splats being rendered with LoD enabled (SplatMesh#L861), not the total amount of splats in the mesh.
image

This PR also increases the upper bound for the lodSplatCount slider. This way the user can increase it all the way up to the number of splats of the original splat file. Before the example always showed a reduced LoD version, even when cranking up the amount. Worst case this could lead people to believe an inherent reduction in visual quality when enabling/generating LoD.

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