model formats (mca..x3d): comments are specs only

This commit is contained in:
4DBug committed 2026-11-01 01:54:32 -05:00
1 parent 0bd7b87d2b
commit b952c10222
49 files changed
+310 -936

No files matched your search

+5 -9
View File
@@ -1,10 +1,6 @@
--!strict
-- model/md5: Doom 3 / Quake 4 MD5 models (MD5Version 10 text): .md5mesh (skeleton, skin, meshes) and .md5anim
-- (skeletal animation), read into a Scene through model/md5/Read. A .md5mesh loads its animations from
-- opts.anims = { "idle.md5anim", ... } (each found through opts.files[name] or opts.resolve(name); joints matched by
-- name; the animation is named after the file without its extension); a missing one fails with UNSUPPORTED unless
-- opts.skipMissing. A .md5anim alone loads as its skeleton (baseframe pose) with the animation. Units are Doom
-- units, z up. Not supported: writing, .md5camera.
-- model/md5: Doom 3 / Quake 4 MD5 (MD5Version 10 text): .md5mesh and .md5anim (model/md5/Read); a mesh loads
-- opts.anims, joints matched by name. Not supported: writing, .md5camera.
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@rosetta/core/Err")
@@ -26,11 +22,11 @@ local Md5 = {
-- ------------------------------------------------------------------------------------------------ types
export type DecodeOptions = {
anims: { string }?, -- .md5anim files to load with a .md5mesh
anims: { string }?,
resolve: ((uri: string) -> (buffer | string)?)?,
files: { [string]: buffer | string }?,
skipMissing: boolean?, -- ignore animations that cannot be found (default false: UNSUPPORTED)
name: string?, -- the file name (names a standalone animation)
skipMissing: boolean?, -- default false: UNSUPPORTED
name: string?,
maxVertices: number?, -- default 2^24
}