Skip to content

fix(examples): show resolved gsplat renderer in dropdown at startup#8953

Merged
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-example-renderer-dropdown
Jun 23, 2026
Merged

fix(examples): show resolved gsplat renderer in dropdown at startup#8953
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-example-renderer-dropdown

Conversation

@mvaligursky

Copy link
Copy Markdown
Contributor

Three gaussian-splatting examples left the Renderer dropdown stuck on "Auto" at startup instead of showing the concrete renderer in effect.

The dropdown reflects data.get('renderer'), and the renderer:set handler is what resolves AUTO to the active renderer (currentRenderer) and writes it back. In these examples the handler was registered after the initial data.set('renderer', AUTO), so the initial value was never resolved. Moved the handler registration above the initial set, matching the other gsplat examples (e.g. world).

Changes:

  • first-person.example.mjs: register renderer:set before initial data.set
  • third-person.example.mjs: same
  • lut-grading.example.mjs: same

Register the renderer:set handler before the initial data.set('renderer',
AUTO) so the initial AUTO selection is resolved to the concrete renderer
and shown in the dropdown, matching the other gsplat examples.
@github-actions

Copy link
Copy Markdown

Build size report

This PR does not change the size of the minified bundles.

Bundle Minified Gzip Brotli
playcanvas.min.js 2261.1 KB — 581.7 KB — 452.0 KB —
playcanvas.min.mjs 2258.5 KB — 580.8 KB — 451.7 KB —

@mvaligursky mvaligursky merged commit 3cd31fe into main Jun 23, 2026
10 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-example-renderer-dropdown branch June 23, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant