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

Merged
kirigayakazima merged 1 commit from upstream-pr/2250 into main 2026-11-29 02:16:27 +00:00
kirigayakazima commented 2026-11-26 10:24:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-26T10:24:06Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5508235736 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2250). Originally posted by [kirigayakazima](https://github.com/kirigayakazima) on 2026-11-26T10:24:06Z. --- Claimed in the coordination issue as: [STUDIO-DDS-CUBE-FACE](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189018014) ### 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.
lixonik commented 2026-11-26 11:01:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T11:01:25Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6072966934 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2250#pullrequestreview-6072966934). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-26T11:01:25Z. **Review:** COMMENTED --- 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.
tiguan26 commented 2026-11-27 04:34:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-27T04:34:55Z.

Review: APPROVED


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6083530303 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2250#pullrequestreview-6083530303). Originally posted by [tiguan26](https://github.com/tiguan26) on 2026-11-27T04:34:55Z. **Review:** APPROVED --- 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).
zmasi commented 2026-11-28 12:16:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T12:16:06Z.


VERIFY-2250 — verified head 42cc70344c merged cleanly with main d48a957bb on Windows 11 Pro (build 26200), Python 3.12.10 (-I) and Node.js v24.16.0, synthetic 1x1 R16_FLOAT cubemap DDS fixtures only.

Red (main d48a957bb) -> Green (d48a957bb + 42cc70344c)

  • Red on main:
    • python -I tests/test_gallery.py (with PR's test_cube_face_preview_and_source_texel) -> FAILED (exit 1: /api/dds/cube.dds?face=nz returned HTTP 400 instead of the -Z face PNG).
    • node --test tests/test_viewer_studio.cjs (with PR's cube inspector requests the selected face for both preview and texel) -> FAILED (exit 1, 12 pass / 1 fail: cube face <select> controls absent).
  • Green on merged PR:
    • python -I tests/test_gallery.py -> 32 tests OK (skipped=2).
    • node --test tests/test_viewer_studio.cjs -> 13/13 pass.
    • python -I tests/test_dds_subresources.py -> 13/13 OK.
    • python -I tests/test_dds_png.py -> 101/101 OK.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7239109410 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2250#issuecomment-7239109410). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T12:16:06Z. --- `VERIFY-2250` — verified head `42cc70344c` merged cleanly with `main` `d48a957bb` on Windows 11 Pro (build 26200), Python `3.12.10` (`-I`) and Node.js `v24.16.0`, synthetic 1x1 `R16_FLOAT` cubemap DDS fixtures only. ### Red (`main` `d48a957bb`) -> Green (`d48a957bb` + `42cc70344c`) - **Red on `main`**: - `python -I tests/test_gallery.py` (with PR's `test_cube_face_preview_and_source_texel`) -> **FAILED** (`exit 1`: `/api/dds/cube.dds?face=nz` returned HTTP `400` instead of the `-Z` face PNG). - `node --test tests/test_viewer_studio.cjs` (with PR's `cube inspector requests the selected face for both preview and texel`) -> **FAILED** (`exit 1`, `12 pass / 1 fail`: cube face `<select>` controls absent). - **Green on merged PR**: - `python -I tests/test_gallery.py` -> **`32` tests OK** (`skipped=2`). - `node --test tests/test_viewer_studio.cjs` -> **`13/13` pass**. - `python -I tests/test_dds_subresources.py` -> **`13/13` OK**. - `python -I tests/test_dds_png.py` -> **`101/101` OK**. AI-assisted.
OreoFR commented 2026-11-29 01:19:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T01:19:52Z.


Verified by OreoFR

  • Base: main 829530dbd + PR head 42cc70344 (tested as a merge)
  • Test: python -I tests/test_gallery.py
  • Red on main: 1 FAIL (test_cube_face_preview_and_source_texel: HTML page returned instead of a PNG)
  • Green with the PR: 35 OK (2 skips). tests/test_viewer_studio.cjs not run: Node.js is not installed on this machine
  • Verdict: READY for the Python side (tools/gallery.py, tools/dds_png.py); the viewer/studio.html part is untested here. None of its files changed on main since; merges without conflict on 5825b02ff
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

macOS run (.cjs test not run on Windows)

Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Node v26.7.0, main 59e65849b, PR head 42cc70344 : red 1 failure / green 13 OK

node --test tests/test_viewer_studio.cjs:

  • Red (main + only this PR's test file): 13 tests (incl. subtests), 1 failed:
    • cube inspector requests the selected face for both preview and texel
  • Green (main + merge): 13/13 OK.
  • (MEASURED n=3) each failing test rerun alone 3 times: red 3/3 fail, green 3/3 pass.
  • Skipped: none (skip 0, todo 0). No npm dependencies (CI runs node --test tests/test_*.cjs).
  • Merge: clean (git merge --no-ff onto main). The PR's test file is not older than main's, so the red run is the plain one.

Verdict for the .cjs part: READY

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248711996 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2250#issuecomment-7248711996). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T01:19:52Z. --- **Verified by OreoFR** - Base: main `829530dbd` + PR head `42cc70344` (tested as a merge) - Test: `python -I tests/test_gallery.py` - Red on main: 1 FAIL (`test_cube_face_preview_and_source_texel`: HTML page returned instead of a PNG) - Green with the PR: 35 OK (2 skips). `tests/test_viewer_studio.cjs` not run: Node.js is not installed on this machine - Verdict: READY for the Python side (`tools/gallery.py`, `tools/dds_png.py`); the `viewer/studio.html` part is untested here. None of its files changed on main since; merges without conflict on `5825b02ff` - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 --- **macOS run (`.cjs` test not run on Windows)** Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Node v26.7.0, main 59e65849b, PR head 42cc70344 : red 1 failure / green 13 OK `node --test tests/test_viewer_studio.cjs`: - **Red** (main + only this PR's test file): 13 tests (incl. subtests), 1 failed: - `cube inspector requests the selected face for both preview and texel` - **Green** (main + merge): 13/13 OK. - (MEASURED n=3) each failing test rerun alone 3 times: red 3/3 fail, green 3/3 pass. - Skipped: none (skip 0, todo 0). No npm dependencies (CI runs `node --test tests/test_*.cjs`). - Merge: clean (`git merge --no-ff` onto main). The PR's test file is not older than main's, so the red run is the plain one. Verdict for the `.cjs` part: **READY** AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-29 02:16:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T02:16:29Z.


Merged after OreoFR's red/green check (check) (macOS 27.2.1, Apple M5) and a local re-check here. Merged after local re-verification: this PR merged onto main b58f74a95 without conflict, and its test file(s) (tests/test_gallery.py, tests/test_viewer_studio.cjs) pass there. Earlier today the same tests failed on main without the PR (red/green) and a bundle with other open PRs showed no new failures. check_no_game_data.py is clean. Windows 11, Python 3.14; no GPU needed for these tests.

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7249322397 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2250#issuecomment-7249322397). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T02:16:29Z. --- Merged after **OreoFR**'s red/green check ([check](https://github.com/ProjectLeonida/mandy/pull/2250#issuecomment-7248711996)) (macOS 27.2.1, Apple M5) and a local re-check here. Merged after local re-verification: this PR merged onto `main` b58f74a95 without conflict, and its test file(s) (`tests/test_gallery.py`, `tests/test_viewer_studio.cjs`) pass there. Earlier today the same tests failed on `main` without the PR (red/green) and a bundle with other open PRs showed no new failures. `check_no_game_data.py` is clean. Windows 11, Python 3.14; no GPU needed for these tests. _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2250
No description provided.