Add a GSplat streaming test example, PREFERRED_DEVICE flag, and numSplats accessor#8847
Merged
Conversation
…lats accessor - New GSplat LOD streaming test example (gaussian-splatting category) with thumbnails. - Engine: GSplatOctreeResource.numSplats accessor returning the full-detail (LOD 0) splat count of a streamed gsplat resource (the LOD system keeps only a view/budget-dependent subset resident at runtime). - Examples: PREFERRED_DEVICE config flag (@Flag PREFERRED_DEVICE=webgpu|webgl2) to set the first-time default graphics device when the user has no stored preference; an explicit user choice always wins. Wired through iframe/state.mjs, utils/example-source.mjs, validated in eslint.config.mjs, documented in README.md. - .gitignore: ignore .claude/.
mvaligursky
added a commit
that referenced
this pull request
Jun 5, 2026
…lats accessor (#8847) - New GSplat LOD streaming test example (gaussian-splatting category) with thumbnails. - Engine: GSplatOctreeResource.numSplats accessor returning the full-detail (LOD 0) splat count of a streamed gsplat resource (the LOD system keeps only a view/budget-dependent subset resident at runtime). - Examples: PREFERRED_DEVICE config flag (@Flag PREFERRED_DEVICE=webgpu|webgl2) to set the first-time default graphics device when the user has no stored preference; an explicit user choice always wins. Wired through iframe/state.mjs, utils/example-source.mjs, validated in eslint.config.mjs, documented in README.md. - .gitignore: ignore .claude/. Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new Gaussian Splat LOD-streaming test example, plus the small framework and engine additions it relies on.
Changes:
GSplatOctreeResource.numSplats: read-only accessor returning the full-detail (LOD 0) splat count of a streamed gsplat resource. The LOD streaming system only keeps a view-distance / budget-dependent subset resident at runtime; this reports the total.PREFERRED_DEVICEconfig flag: new// @flag PREFERRED_DEVICE=webgpu|webgl2that sets the first-time default graphics device when the user has no stored preference. An explicit user choice (localStorage / URL) always wins; defaults towebgl2when unset. Wired throughiframe/state.mjs(device resolution order),utils/example-source.mjs(config typedef + parsing), validated ineslint.config.mjs, and documented inREADME.md..claude/.API Changes:
GSplatOctreeResource.numSplats(getter).