Viewer: Scenes tab to browse cutscenes, and Open in scenes for each character #222

Manually merged
github merged 2 commits from gh-pr/222/head into gh-pr/222/base 2026-11-26 20:19:21 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 23:10 UTC · original
holdmysocks:claude/scenes-tab → master · +535 −3 · 4 files · 2 commits · merged 2026-11-24 23:21 UTC

Linear: SIX-157

A 🎬 Scenes tab in the viewer for the story pack's cutscenes, plus an Open in scenes button on every character.

Scenes tab (crates/sixng-gui/src/scenes_view.rs)

  • Lists all 2,824 scenes. Previous / Next buttons and the Up / Down keys step through the filtered list.
  • Name search: every word must be part of the scene name, in any case.
  • Cast search: every word must match a cast member's scene handle (lucia) or model (player_story000_00). Words are split at spaces or commas, so lucia, jason lists the scenes with both.
  • For the selected scene, it shows the same data as sixng cutscenes <scene>: the dictionary, joined sections, scene files, the cast with ped models and clip counts, props, cameras, other objects and set models.
  • Characters the viewer can build get a ▶ Play button, one per clip when a handle has ^N copies. It opens the character in the model viewer and plays cin@<scene>/<clip>.
  • The catalog and model names load on a worker thread, with a spinner and progress bar while that runs. The first scan of the pack takes about 2 minutes; after that the cache is used. The catalog is kept in memory and reused by clip loads.

Model viewer

  • The Animation panel takes cin@<scene>[/<clip>]. Without a clip name it plays the open character's own clip in that scene (cutscene::model_clips). The dictionary is loaded with cutscene::load_dictionary, so all the scene's sections are joined and the whole scene plays.
  • The character panel has an Open in scenes button. It switches to the Scenes tab with the cast filter set to that character.

Library

  • Character item pages also have Open in scenes.

Automation

  • --tab scenes [--scene <words>] [--cast <words>] opens the tab with those searches, for screenshots.

Tests

  • Name search, cast filter (handle or model, every word required, props excluded) and stepping through the list, in scenes_view::tests.
  • cargo test --release --locked --workspace passes.

Checked in the viewer (default GPU)

  • The diner scene, filtered to Lucia and Jason, shows 3 matching scenes with 22 joined sections.
  • The Lucia filter matches 1,672 of 2,824 scenes.
  • cin@mtl_mont_mcs1_arrive_at_diner_p1_t05 on Lucia, and …/jason on Jason, each play 55.90 s with 132 of 135 bone tracks on the skeleton.

Not covered

  • Each clip starts at the character's own origin, because scene-space placement is not exported. The tab says so.
  • Peds that are not buildable characters have no Play button.
  • The first-scan progress UI was not exercised, because the cache already existed.
**@⁠holdmysocks** on GitHub · 2026-11-24 23:10 UTC · [original](https://github.com/holdmysocks/SixNG/pull/222) `holdmysocks:claude/scenes-tab` → `master` · +535 −3 · 4 files · 2 commits · merged 2026-11-24 23:21 UTC Linear: [SIX-157](https://linear.app/sixng/issue/SIX-157) A **🎬 Scenes** tab in the viewer for the story pack's cutscenes, plus an **Open in scenes** button on every character. **Scenes tab** (`crates/sixng-gui/src/scenes_view.rs`) - Lists all 2,824 scenes. **Previous / Next** buttons and the Up / Down keys step through the filtered list. - **Name** search: every word must be part of the scene name, in any case. - **Cast** search: every word must match a cast member's scene handle (`lucia`) or model (`player_story000_00`). Words are split at spaces or commas, so `lucia, jason` lists the scenes with both. - For the selected scene, it shows the same data as `sixng cutscenes <scene>`: the dictionary, joined sections, scene files, the cast with ped models and clip counts, props, cameras, other objects and set models. - Characters the viewer can build get a **▶ Play** button, one per clip when a handle has `^N` copies. It opens the character in the model viewer and plays `cin@<scene>/<clip>`. - The catalog and model names load on a worker thread, with a spinner and progress bar while that runs. The first scan of the pack takes about 2 minutes; after that the cache is used. The catalog is kept in memory and reused by clip loads. **Model viewer** - The Animation panel takes `cin@<scene>[/<clip>]`. Without a clip name it plays the open character's own clip in that scene (`cutscene::model_clips`). The dictionary is loaded with `cutscene::load_dictionary`, so all the scene's sections are joined and the whole scene plays. - The character panel has an **Open in scenes** button. It switches to the Scenes tab with the cast filter set to that character. **Library** - Character item pages also have **Open in scenes**. **Automation** - `--tab scenes [--scene <words>] [--cast <words>]` opens the tab with those searches, for screenshots. **Tests** - Name search, cast filter (handle or model, every word required, props excluded) and stepping through the list, in `scenes_view::tests`. - `cargo test --release --locked --workspace` passes. **Checked in the viewer** (default GPU) - The diner scene, filtered to Lucia and Jason, shows 3 matching scenes with 22 joined sections. - The Lucia filter matches 1,672 of 2,824 scenes. - `cin@mtl_mont_mcs1_arrive_at_diner_p1_t05` on Lucia, and `…/jason` on Jason, each play 55.90 s with 132 of 135 bone tracks on the skeleton. **Not covered** - Each clip starts at the character's own origin, because scene-space placement is not exported. The tab says so. - Peds that are not buildable characters have no Play button. - The first-scan progress UI was not exercised, because the cache already existed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:19:20 +00:00
github manually merged commit 660b822ee8 into gh-pr/222/base 2026-11-26 20:19:21 +00:00
Author
Owner

@⁠kaoru-maki on GitHub · 2026-11-24 23:46 UTC · original

A dialogue follow-up to the Scenes view. We ran a native speaker-to-audio join across all 22 archives in our test inventory using 66 verified model-to-label mappings. We confirmed 6,730 new dialogue-to-original-audio links for 38 characters, covering 5 h 51 min of isolated original speech.

A PSIN turn's participant slot supplies a full character hash. We match it to the scene cast and resolve the display label from character metadata. The cue, GXT key and full wave identity let us find the exact archive, bank offset and stream index. We cross-check the text with ASR tied to the isolated original. Separate participant hashes keep their own identities when the model and label are shared.

The stream index, name source and full hash exported by #219 give us the audio side of the join. A small follow-up to Scenes could show the native speaker and subtitle key on a dialogue row and link directly to the corresponding Audio stream.

**@⁠kaoru-maki** on GitHub · 2026-11-24 23:46 UTC · [original](https://github.com/holdmysocks/SixNG/pull/222#issuecomment-7147784190) A dialogue follow-up to the Scenes view. We ran a native speaker-to-audio join across all 22 archives in our test inventory using 66 verified model-to-label mappings. We confirmed 6,730 new dialogue-to-original-audio links for 38 characters, covering 5 h 51 min of isolated original speech. A PSIN turn's participant slot supplies a full character hash. We match it to the scene cast and resolve the display label from character metadata. The cue, GXT key and full wave identity let us find the exact archive, bank offset and stream index. We cross-check the text with ASR tied to the isolated original. Separate participant hashes keep their own identities when the model and label are shared. The stream index, name source and full hash exported by #219 give us the audio side of the join. A small follow-up to Scenes could show the native speaker and subtitle key on a dialogue row and link directly to the corresponding Audio stream.
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-24 23:52 UTC · original

Thank you, glad the #219 export helps with the audio side of that join. Showing the speaker and subtitle key on each dialogue row in Scenes, with a link straight to its Audio stream, is a good idea; we've passed it on and will look at it as a follow-up.

**@⁠holdmysocks** on GitHub · 2026-11-24 23:52 UTC · [original](https://github.com/holdmysocks/SixNG/pull/222#issuecomment-7147898223) Thank you, glad the #219 export helps with the audio side of that join. Showing the speaker and subtitle key on each dialogue row in Scenes, with a link straight to its Audio stream, is a good idea; we've passed it on and will look at it as a follow-up.
This discussion has been locked. Commenting is limited to contributors.
No description provided.