tests/model: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:50:23 -05:00
1 parent 5f7f6005f6
commit fe7566cbba
37 files changed
+72 -440

No files matched your search

+2 -7
View File
@@ -1,7 +1,4 @@
-- model/md3 tests: MD3 files written by tools/fixtures/md3.py (several surfaces, frames, tags) decode to assimp's
-- frame-0 triangle soup (every surface: positions, texture coordinates) and to the writer's exact positions and
-- normals for every frame, shaders as texture URIs, tags as nodes with their per-frame channels, errors, the fuzz
-- pass.
-- model/md3 tests: generated MD3 files against assimp's frame-0 soup and the writer's exact frames and tags.
local T = require("@tests/T")
local F = require("@rosetta")
local Md3 = require("@rosetta/model/md3")
@@ -34,8 +31,7 @@ for _, c in Fx do
t:eq(F.detect(c.data), "md3", c.name .. ": F.detect")
local prims = s.meshes[1].primitives
t:eq(#prims, #c.surfaces, c.name .. ": a primitive per surface")
-- assimp: every surface's frame 0 (assimp orders the meshes differently and rotates triangle corners: match each
-- assimp mesh to the surface whose triangles it holds)
-- assimp orders the meshes differently and rotates triangle corners: match each mesh to the surface holding its triangles
t:eq(c.assimp.meshes, #c.surfaces, c.name .. ": assimp meshes")
local matched = 0
for mi, m in c.assimp.per do
@@ -67,7 +63,6 @@ for _, c in Fx do
t:eq(#prims[si].targets, c.frames, c.name .. ": morph targets")
end
end
-- tags
local ntags = #c.tags // c.frames
t:eq(#s.meta.source.tags, ntags, c.name .. ": tags")
for _, tg in c.tags do