studio: select cube faces for DDS previews and texels #2250

Open
github-bot wants to merge 1 commit from github-bot/gh-2250 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-26 10:24 UTC · original
kirigayakazima:codex/studio-dds-cube-face → main · +56 −3 · 5 files · 1 commits · open

Claimed in the coordination issue as: STUDIO-DDS-CUBE-FACE

What and why

Expose the cube faces listed by the DDS header in Studio. Preview and half-float texel inspection use the same face, mip and layer. HTTP tests check the selected PNG and the exact stored texel value. The Studio test starts with a partial face list and switches away from its first entry.

Tested

Windows, Python 3.14.7, Node.js 24.19.0. The regression failed on the parent commit and passed with this change.

  • python -I tests/test_gallery.py
  • node --test tests/test_viewer_studio.cjs
  • python -I tests/test_dds_subresources.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-26 10:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2250) `kirigayakazima:codex/studio-dds-cube-face` → `main` · +56 −3 · 5 files · 1 commits · open Claimed in the coordination issue as: [STUDIO-DDS-CUBE-FACE](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Expose the cube faces listed by the DDS header in Studio. Preview and half-float texel inspection use the same face, mip and layer. HTTP tests check the selected PNG and the exact stored texel value. The Studio test starts with a partial face list and switches away from its first entry. ### Tested Windows, Python 3.14.7, Node.js 24.19.0. The regression failed on the parent commit and passed with this change. - `python -I tests/test_gallery.py` - `node --test tests/test_viewer_studio.cjs` - `python -I tests/test_dds_subresources.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:24:29 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 11:01 UTC · original · reviewed

Windows 11: 32 gallery tests, 13 Studio Node tests, and 13 DDS subresource tests passed. I also served a synthetic two-cube R16_FLOAT array with two mip levels on loopback and checked four mip=1 face/layer combinations. All four PNG previews and exact stored half-texel values matched. No findings from these checks.

AI-assisted.

**@⁠lixonik** on GitHub · 2026-11-26 11:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2250#pullrequestreview-6072966934) · **reviewed** Windows 11: 32 gallery tests, 13 Studio Node tests, and 13 DDS subresource tests passed. I also served a synthetic two-cube R16_FLOAT array with two mip levels on loopback and checked four `mip=1` face/layer combinations. All four PNG previews and exact stored half-texel values matched. No findings from these checks. AI-assisted.
Author
Owner

@⁠tiguan26 on GitHub · 2026-11-27 04:34 UTC · original · approved these changes

Approving 42cc70344.

Cube faces are selectable in the studio: the face reaches _locate_plane for previews and texels, the query allows the one extra field, and the modal offers the faces the texture has.

Merged onto main d1dff7949 in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. tests/test_gallery.py 32 passed (main: 31); node --test tests/test_viewer_studio.cjs: 13 pass. AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠tiguan26** on GitHub · 2026-11-27 04:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2250#pullrequestreview-6083530303) · **approved these changes** Approving 42cc70344. Cube faces are selectable in the studio: the face reaches `_locate_plane` for previews and texels, the query allows the one extra field, and the modal offers the faces the texture has. Merged onto `main` `d1dff7949` in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. `tests/test_gallery.py` 32 passed (main: 31); `node --test tests/test_viewer_studio.cjs`: 13 pass. AI-assisted (Claude Code, Claude Opus 5.5).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2250/head:github-bot/gh-2250'
git switch 'github-bot/gh-2250'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2250'
git switch 'github-bot/gh-2250'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2250'
git switch 'github-bot/gh-2250'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2250'
git switch 'main'
git merge --squash 'github-bot/gh-2250'
git switch 'main'
git merge --ff-only 'github-bot/gh-2250'
git switch 'main'
git merge 'github-bot/gh-2250'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.