studio: select cube faces for DDS previews and texels #2250
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2250"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.pynode --test tests/test_viewer_studio.cjspython -I tests/test_dds_subresources.pygit diff --checkand the changed-path no-game-data scan passed.GPUs tested: N/A (synthetic CPU tests).
AI-assisted: Yes.
Checklist
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=1face/layer combinations. All four PNG previews and exact stored half-texel values matched. No findings from these checks.AI-assisted.
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_planefor previews and texels, the query allows the one extra field, and the modal offers the faces the texture has.Merged onto
maind1dff7949in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13.tests/test_gallery.py32 passed (main: 31);node --test tests/test_viewer_studio.cjs: 13 pass. AI-assisted (Claude Code, Claude Opus 5.5).Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T12:16:06Z.
VERIFY-2250— verified head42cc70344cmerged cleanly withmaind48a957bbon Windows 11 Pro (build 26200), Python3.12.10(-I) and Node.jsv24.16.0, synthetic 1x1R16_FLOATcubemap DDS fixtures only.Red (
maind48a957bb) -> Green (d48a957bb+42cc70344c)main:python -I tests/test_gallery.py(with PR'stest_cube_face_preview_and_source_texel) -> FAILED (exit 1:/api/dds/cube.dds?face=nzreturned HTTP400instead of the-Zface PNG).node --test tests/test_viewer_studio.cjs(with PR'scube inspector requests the selected face for both preview and texel) -> FAILED (exit 1,12 pass / 1 fail: cube face<select>controls absent).python -I tests/test_gallery.py->32tests OK (skipped=2).node --test tests/test_viewer_studio.cjs->13/13pass.python -I tests/test_dds_subresources.py->13/13OK.python -I tests/test_dds_png.py->101/101OK.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T01:19:52Z.
Verified by OreoFR
829530dbd+ PR head42cc70344(tested as a merge)python -I tests/test_gallery.pytest_cube_face_preview_and_source_texel: HTML page returned instead of a PNG)tests/test_viewer_studio.cjsnot run: Node.js is not installed on this machinetools/gallery.py,tools/dds_png.py); theviewer/studio.htmlpart is untested here. None of its files changed on main since; merges without conflict on5825b02ffmacOS run (
.cjstest 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 head42cc70344: red 1 failure / green 13 OKnode --test tests/test_viewer_studio.cjs:cube inspector requests the selected face for both preview and texelnode --test tests/test_*.cjs).git merge --no-ffonto main). The PR's test file is not older than main's, so the red run is the plain one.Verdict for the
.cjspart: READYAI-assisted (Claude Code, Claude Opus 5.5).
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
mainb58f74a95without conflict, and its test file(s) (tests/test_gallery.py,tests/test_viewer_studio.cjs) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.