Skip to content

feat(samples): model-viewer — model picker + scale 1.0#668

Merged
ThomasGorisse merged 1 commit intomainfrom
feat/model-viewer-model-picker
Mar 20, 2026
Merged

feat(samples): model-viewer — model picker + scale 1.0#668
ThomasGorisse merged 1 commit intomainfrom
feat/model-viewer-model-picker

Conversation

@ThomasGorisse
Copy link
Contributor

Summary

  • Adds a model picker chip row at the bottom of the model-viewer sample — tap to switch between Helmet and Fox without restarting the app
  • Adds Fox.glb (159 KB, animated, CC0 licence) from KhronosGroup glTF-Sample-Assets
  • Scales the Damaged Helmet from 0.25f → 1.0f so it fills the viewport at the default camera distance (consistent with camera-manipulator sample)
  • Fox scaled to 0.012f to normalise its raw 83 m world height to ~1 m

Test plan

  • ./gradlew :samples:model-viewer:assembleDebug — builds successfully
  • Both models selectable at runtime via chip row
  • Fox animates on selection (idle animation in the GLB)
  • CI will run full lint on merge

🤖 Generated with Claude Code

- Add Fox.glb (159KB, CC0 from KhronosGroup glTF-Sample-Assets) as a
  second model alongside the Damaged Helmet
- Add FilterChip row at bottom centre to switch between models
- Scale Helmet from 0.25f → 1.0f (consistent with camera-manipulator)
- Fox scaled to 0.012f (normalises its raw ~83m height to 1m)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Mar 20, 2026
@ThomasGorisse ThomasGorisse merged commit c7d8a1d into main Mar 20, 2026
1 check passed
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