# MDL fixtures (tools/fixtures.py). Quake 1 ("IDPO" 6) and Half-Life 1 ("IDST" 10) models written here from the # Quake specs / studio.h layouts, with random data; references: assimp's triangle soup (frame 0 / bind pose: # positions, texture coordinates; for Quake from a copy without the skin group, which assimp 6 misreads) and this writer's own exact values: # quake: every frame's positions (CRC-32 of the f32 soup in our corner order), the skins through a test palette # (CRC-32 of the RGBA pixels), frame names; # halflife: bones (bind pose), body parts / meshes / triangle strips and fans, two textures with their own # palettes and a skin family, two sequences with run-length coded animation values (the values per frame # and bone, computed here). # tests/gen/mdl.luau { quake = { ... }, halflife = { ... } } import importlib.util, math, os, struct, zlib INPUTS = ["tools/fixtures/_quake_ref.py"] def ref(ctx): spec = importlib.util.spec_from_file_location("_quake_ref", os.path.join(ctx.root, "tools", "fixtures", "_quake_ref.py")) m = importlib.util.module_from_spec(spec) spec.loader.exec_module(m) return m def f32(x): return struct.unpack("