Skip to content

Viewer: support drag-and-drop of unpacked SOG#8626

Merged
mvaligursky merged 1 commit into
mainfrom
mv-viewer-unpacked-sog
Apr 21, 2026
Merged

Viewer: support drag-and-drop of unpacked SOG#8626
mvaligursky merged 1 commit into
mainfrom
mv-viewer-unpacked-sog

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

Extend the gaussian splat viewer example to support loading "unpacked" SOG assets — a meta.json alongside its webp texture files — via drag and drop.

Changes:

  • Drop handler now accepts multiple files; if meta.json is among them it routes to a new unpacked-SOG branch that creates a blob URL per file and constructs the gsplat asset with an options.mapUrl callback so SogParser resolves sibling texture filenames to the corresponding blob URLs.
  • Existing .ply, .sog, and .glb single-file drop paths are unchanged.
  • Drop overlay now shows a two-line message advertising both drop modes.

Examples:

  • examples/src/examples/gaussian-splatting/viewer.example.mjs updated.

Extend the gaussian splat viewer example to accept an unpacked SOG
(meta.json + sibling webp files) via drag and drop. When meta.json is
among the dropped files, a blob URL is created for each sibling file and
the gsplat asset is constructed with options.mapUrl so SogParser
resolves texture filenames to the corresponding blob URLs.
@mvaligursky mvaligursky self-assigned this Apr 21, 2026
@mvaligursky mvaligursky merged commit 58a26a8 into main Apr 21, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-viewer-unpacked-sog branch April 21, 2026 10:09
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