upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorsyfyra <258908070+syfyra@users.noreply.github.com>2026-11-26 14:59:33 +0100
committersyfyra <258908070+syfyra@users.noreply.github.com>2026-11-26 15:00:26 +0100
commitd83cee900cfc2bb65ab303b2f22d8713bde5a7a8 (patch)
tree69369abbfe71f3a56ce56690771d7d302dc31302 /runtime/test/cpp_unwind_test.cpp
parent73516a2902a9872e4d21d1bdbbde4e26059497c5 (diff)
studio: list the shown model's size, meshes, materials and textures (STUDIO-MODEL-DETAILS)
The studio's stats panel gave a model's triangles, vertices and file size. Checking an export needs the next layer too: how big the model is, how many meshes and materials it has, and which textures each material uses at what size. Add that to the panel, read from the loaded glTF alone: - the bounding-box size in metres (glTF units), three significant digits, so a ring and a building both read sensibly; - meshes / materials / textures (GLTFLoader makes one mesh per glTF primitive; a texture used in two slots counts once); - a collapsible list of the materials, each with the meshes using it and its texture slots with their sizes. A material with neither a texture nor vertex colours is marked "no texture", the flat-colour look of a texture the export lost. In clay and normals mode the list keeps the model's own materials. Names are escaped, the new labels follow the RU/EU switch, and a failed or stale download leaves the shown model's details in place. Tested: three new node tests in tests/test_viewer_studio.cjs (fail before the change, pass after); in a browser with tools/gallery.py and a synthetic .glb (two meshes sharing a textured material, an untextured one, a vertex-coloured one). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions