Skip to content

Unify GSplat debug rendering into a single enum-based API#8598

Merged
mvaligursky merged 1 commit intomainfrom
mv-gsplat-debug-enum
Apr 14, 2026
Merged

Unify GSplat debug rendering into a single enum-based API#8598
mvaligursky merged 1 commit intomainfrom
mv-gsplat-debug-enum

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

Replaces the separate colorizeLod (boolean) and colorizeColorUpdate (boolean) properties on GSplatParams with a single debug property that accepts numeric constants, ensuring only one debug mode is active at a time.

Changes:

  • Add GSPLAT_DEBUG_NONE, GSPLAT_DEBUG_LOD, and GSPLAT_DEBUG_SH_UPDATE constants
  • Add GSplatParams#debug property (numeric enum) replacing two boolean flags
  • Deprecate GSplatParams#colorizeLod and GSplatParams#colorizeColorUpdate with shims that forward to debug
  • Update examples to use a dropdown selector (None / LOD / SH Update) instead of boolean toggles

API Changes:

  • New: GSplatParams#debug — set to GSPLAT_DEBUG_NONE (default), GSPLAT_DEBUG_LOD, or GSPLAT_DEBUG_SH_UPDATE
  • Deprecated: GSplatParams#colorizeLod — use debug = GSPLAT_DEBUG_LOD instead
  • Deprecated: GSplatParams#colorizeColorUpdate — use debug = GSPLAT_DEBUG_SH_UPDATE instead

Examples:

  • Updated lod-streaming, lod-streaming-sh, and world examples with a Debug dropdown

Replace separate `colorizeLod` and `colorizeColorUpdate` boolean properties
with a single `debug` property accepting GSPLAT_DEBUG_* constants, ensuring
only one debug mode is active at a time. Old properties remain as deprecated
shims. Update examples to use a dropdown selector.
@mvaligursky mvaligursky self-assigned this Apr 14, 2026
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Apr 14, 2026
@mvaligursky mvaligursky merged commit 7be3747 into main Apr 14, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-debug-enum branch April 14, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant