Commit Graph
252 Commits
Author SHA1 Message Date
4DBug 47345b2c8f merge ws/3d3 2026-10-31 15:39:55 -05:00
4DBug c65a66695f merge ws/video2 2026-10-31 15:31:56 -05:00
4DBug 94783a86d1 merge ws/3d3-c (model/pmx, model/vrml, model/x3d, codecs/model/Vrml); README model list 2026-10-31 15:29:37 -05:00
4DBug 9694c652ec merge ws/video2-legacy (FLIC, Cinepak, MSV1, QT RLE / SMC, Smacker; video/fli, video/smk) 2026-10-31 15:23:13 -05:00
4DBug 77479b6a2f merge ws/video2-theora (Theora codec, ogv) 2026-10-31 15:22:40 -05:00
4DBug 98b04367c6 merge master into ws/3d3 (ws/roblox, ws/voxel, ...) 2026-10-31 15:20:28 -05:00
4DBug 74c3b63615 merge ws/voxel 2026-10-31 15:08:58 -05:00
4DBug 9fe5f8d658 ws-roblox: docs/guide/roblox.md (tested snippets: places, building trees, meshes) + docs_roblox inputs; F.Rbx (codecs/model/Rbx) exported by the api; bench lines (rbxm / rbxmx / robloxmesh); STYLE.md codec list gains Lz4 and Rbx 2026-10-31 15:06:55 -05:00
4DBug 406b894635 ws-3d3: model/3ds writer samples camera / light channels through codecs/model/Sampler (drops its local sampler); scene.md intro wrap 2026-10-31 15:03:40 -05:00
4DBug 44cda7256c merge ws/3d3-b (model/lwo, model/x, model/iqm, codecs/model/Sampler; brings ws/game af4488d for codecs/model/Rig) 2026-10-31 15:02:25 -05:00
4DBug 88d5fe7d2f ws-video2-theora: Theora MC average without type diagnostics (lint TYPES back to the baseline) 2026-10-31 15:01:19 -05:00
4DBug 4b9d8e3069 ws-3d3-b: model/x: counts past the data are refused before allocating (TRUNCATED) 2026-10-31 15:01:09 -05:00
4DBug feb8d18cfb merge ws/3d3-a (model/3ds, model/ms3d) 2026-10-31 14:55:36 -05:00
4DBug 76128bf381 ws-3d3: codecs/model/Vrml (VRML97 / X3D classic parser, X3D XML adapter, node graph -> Scene builder, writer) + model/vrml (.wrl read / write) + model/x3d (.x3d / .x3dv read / write; .x3db UNSUPPORTED); tests against VTK and assimp 2026-10-31 14:54:56 -05:00
4DBug f3df37012e ws-3d3: model/3ds/Write: drop an unused local 2026-10-31 14:54:21 -05:00
4DBug f86e12f051 ws-voxel: model/qb (Qubicle Binary read + write: RGBA / BGRA, z orientation, RLE, visibility masks; exact colours in Voxels.colors) 2026-10-31 14:52:15 -05:00
4DBug 6e0b80a7f2 ws-video2: MpegEs Picture type annotation (type baseline) 2026-10-31 14:51:14 -05:00
4DBug d22c72c1bc ws-video2: MPEG-2 field-picture / concealment-vector fixtures (a syntax-level writer in tools/fixtures/mpeg2.py), bit-exact; LuaJIT-friendlier hot paths; mpeg2 bench line 2026-10-31 14:50:27 -05:00
4DBug 286d193f14 ws-voxel: model/mca (Anvil regions read-only: gzip / zlib / LZ4Block / stored / external .mcc chunks; 1.18+, 1.13-1.17 and pre-1.13 chunk layouts) into Voxels with exact block states; block entity shapes moved into codecs/model/Minecraft 2026-10-31 14:47:05 -05:00
4DBug 1013925a85 ws-video2-theora: Theora speed (fused prediction + IDCT add, inlined token decode, table-driven tokens), bench lines, guide section
tools/bench.luau: a ws-video2-theora block (320x240 testsrc2 / mandelbrot, decode and
decode + image()). docs/guide/video.md: an Ogg Theora section (tested snippet; inputs
from the new tools/fixtures/docs_theora.py) and the formats / writers tables.
2026-10-31 14:43:22 -05:00
4DBug d99b026b07 legacy video: bench lines (320x240 / 320x200 fixtures), Smacker frame decoder through 10-bit lookup tables 2026-10-31 14:41:29 -05:00
4DBug 51daa00a67 ws-3d3-b: model/iqm (Inter-Quake Model v2 read + write: meshes, every vertex array format, joints -> skin, poses / frames / anims -> channels, bounds; writer merges skins, samples and quantizes animations); new codecs/model/Sampler (channel evaluation STEP / LINEAR + slerp / CUBICSPLINE, animation poses at a time) with tests
mrfixit.iqm matches assimp and an independent Python IQM reader (its skinning reproduces the bounds the IQM tool stored; ours matches it to 1e-4); round trips and glTF skinned models written by us are skinned identically by the Python reader.
2026-10-31 14:39:22 -05:00
4DBug 09354cbd12 merge ws/roblox (codecs/compress/Lz4 for Anvil LZ4 chunks); registry regenerated 2026-10-31 14:38:23 -05:00
4DBug fea56f4391 ws-voxel: model/schematic (.schem v1-3, .schematic, .litematic read + write), codecs/model/Minecraft (block states, default colours, legacy ids, packed arrays)
Types change (backward compatible): Types.Voxels gains optional blocks (VoxelBlocks: exact block states as
u16 indices into a state palette, block entities, entities) and colors (exact u32 RGBA per cell).
2026-10-31 14:37:43 -05:00
4DBug bf639260e4 video/smk: Smacker (SMK2 / SMK4) with its video codec and audio
containers into containers/Demux (palette updates ride on each video packet as packet.palette); the Smacker video
codec (header Huffman trees with the escape cache, MONO / FULL (+ SMK4 doubled modes) / SKIP / FILL blocks) lives in
codecs/video/Legacy/Smacker and registers as 'smackvid'; Smacker's packed DPCM-Huffman audio (8 / 16-bit, mono /
stereo) and raw PCM tracks decode in video/smk/Audio, the Decoder built by the format over codecs/audio/Stream
(Smk.openAudio; open() installs it as the openAudio hook). Fixtures encoded by tools/fixtures/smk.py: video and
audio bit-exact with ffmpeg.
2026-10-31 14:37:39 -05:00
4DBug 4f2a388a6d ws-3d3: codecs/model/Draco: kd-tree point clouds (bitstream 2.3, levels 0 - 6)
Byte-exact against libdraco on all 206 test files, kd-tree point clouds included.
2026-10-31 14:34:06 -05:00
4DBug 730820d1f6 ws-3d3: model/ms3d (MilkShape 3D) read + write
Groups, materials (texture uri), joints -> nodes + skin + one animation,
version 4 sub-versioned blocks (comments, vertex extras with up to four
bones, joint colours, model extras). Writer: groups per placed primitive,
the first skin plus animated nodes as joints (rigid meshes bound to them),
weights in percent. Tested against assimp and through glTF skin models.
2026-10-31 14:33:46 -05:00
4DBug 3a1965486f ws-roblox: model/robloxmesh (.mesh 1.00-5.00, 6.00/7.00 chunked with raw COREMESH read; Draco COREMESH UNSUPPORTED; 2.00 / 4.00 write with skinning subsets and LODs) mapped to Scene; rbxm / rbxmx variant() for F.detect (rbxl / rbxlx); api tests 2026-10-31 14:33:15 -05:00
4DBug de2695b87d merge ws/3d3-d (model/b3d, model/ldraw) 2026-10-31 14:30:17 -05:00
4DBug 8362dbafae merge master into ws/3d3 2026-10-31 14:30:01 -05:00
4DBug c3711a7ab1 ws-3d3: model/gltf: KHR_draco_mesh_compression through codecs/model/Draco
Draco primitives decode on load (attributes as their accessors declare them,
u32 indices), written back uncompressed without the extension; meshopt stays
UNSUPPORTED. Tests: transcoded Khronos samples (two quantizations), Draco's and
assimp's Draco glTF files, each Draco primitive byte for byte against libdraco,
against the uncompressed sources, round trips. Draco bench line; scene.md section.
2026-10-31 14:29:54 -05:00
4DBug e3ac2f8b36 ws-3d3-d: model/ldraw (LDR / DAT / MPD read: parts as shared meshes per colour, sub-models as nodes, BFC, LDConfig colours, library paths through files / resolve)
Built-in colour table from LDConfig.ldr (CC BY 2.0 / 4.0, licenses/LDRAW_COLOURS.txt + NOTICE.md row).
Tests: independent Python expansion + LeoCAD OBJ export of library parts / car.ldr / pyramid.ldr (read from the nix store).
2026-10-31 14:28:56 -05:00
4DBug 22db57f348 ws-video2: MPEG-2 in MPEG-TS (0x02 / private 0x80), MPEG-PS, MKV, AVI, MP4 caps; tests/video/mpeg2.luau 2026-10-31 14:28:11 -05:00
4DBug 7fc5d3f5f0 regenerate registry after merging master 2026-10-31 14:26:01 -05:00
4DBug 3146ec0936 merge master (ws/apifix) into ws/video2 2026-10-31 14:26:00 -05:00
4DBug 29c8bd1a11 ws-video2: codecs/video/Mpeg2 (MPEG-1/2 core, Main profile, 4:2:2, field pictures, dual prime), bit-exact with ffmpeg -idct int
Mpeg1 is now the Mpeg2 module under its old name (core, tables and VLCs moved to Mpeg2/). Dsp.mc takes separate
source / destination strides; Dsp.edge emulates edges. containers/MpegEs: field-picture pairs are one access unit
(pictureStructure). Registry: mpeg1 and mpeg2 decode through Mpeg2.newVideoDecoder; more MPEG-2 FourCCs.
2026-10-31 14:25:51 -05:00
4DBug b5964d4afc merge master 2026-10-31 14:25:41 -05:00
4DBug 58d7e08397 ws-voxel: wip: codecs/model/Minecraft, model/schematic, Types.Voxels blocks / colors 2026-10-31 14:25:41 -05:00
4DBug bd696dea1e merge master (ws/apifix) into ws/roblox 2026-10-31 14:25:18 -05:00
4DBug a1d2e7218c video/fli: FLI / FLC / FLX animations (read)
Header (FLI 1/70 s, FLC ms, depths 8 / 15 / 16 / 24), frame chunks into containers/Demux, open() through the
registry's flic decoder (codecs/video/Legacy/Flic); the ring frame is dropped unless opts.ringFrame. Fixtures
encoded by tools/fixtures/fli.py (every chunk type) with ffmpeg's decode as the reference: bit-exact.
2026-10-31 14:24:29 -05:00
4DBug 4dcb005180 ws-video2-theora: video/ogv, Ogg video (Theora + Vorbis / Opus / FLAC)
Demuxes every logical stream of the first Ogg group into containers/Demux:
Theora (frame times from granules, Xiph-laced headers as track.config, comment
tags in meta.tags), Vorbis / Opus / FLAC audio (headers in track.config) for the
api's openAudio hook; open = Video.open. Sniff claims only Ogg files with a Theora
BOS page. encode remuxes Theora (+ Vorbis / Opus pages from AudioWrap, interleaved
by time). codecs/video/Theora gains info / comment helpers.
2026-10-31 14:22:39 -05:00
4DBug 8e3873c9fb codecs/video/Legacy: Cinepak, Microsoft Video 1, QuickTime RLE / SMC and FLIC decoders
Registry decoders (codecs/video/Video BUILTIN: cvid, CRAM / MSVC / WHAM, 'rle ', 'smc ', AFLC), rgba8 pictures
painted over the previous picture, palettes from track.palette (or packet.palette). Bit-exact with ffmpeg on
28 AVI / MOV / MKV fixtures (tools/fixtures/legacy.py: ffmpeg's encoders plus encoders in _legacy_mux.py for
QuickTime RLE 1/2/4/8-bit, 8-bit MS Video 1 and Cinepak). Also fixes QtPalette's big-endian reads.
2026-10-31 14:20:17 -05:00
4DBug ea9c0b36df ws-roblox: codecs/model/Rbx (RbxTree, typed values, CFrame rotation ids, binary property columns), model/rbxm (binary rbxm / rbxl read + write; LZ4 / Zstd / raw chunks; unknown chunks and property types round trip raw), model/rbxmx (XML rbxmx / rbxlx read + write); tests vs rojo 7.7 + lune 0.11 both ways
init.luau: KIND_CATEGORY gains rbxtree = model (F.save of an RbxTree finds the model category).
2026-10-31 14:19:46 -05:00
4DBug a43d81538e ws-3d3: model/3ds (Autodesk 3D Studio) read + write
Meshes (smoothing-group normals, uvs, mesh matrix, per-face materials), Phong
materials with texture maps (uri), cameras, lights, the keyframer (hierarchy,
pivots, instances, dummies, position / rotation / scale / camera tracks ->
one animation). Writer: objects, materials, cameras, lights, keyframer.
Tested against assimp (test models, its 3DS exporter, and reading our files).
2026-10-31 14:19:08 -05:00
4DBug 4f05c89f01 ws-3d3-b: model/x (DirectX .x read: text, binary, MSZIP tzip / bzip, 32 / 64-bit floats; frames, meshes with normals / uvs / colours, materials and textures, skins, animation sets); assimp's test models plus bin 0064 / tzip variants match assimp's counts, bones, animations and world bounds 2026-10-31 14:17:28 -05:00
4DBug 8183f4d2d7 ws-video2-theora: codecs/video/Theora, a Theora decoder (port of libtheora 1.2.0, BSD)
Headers (identification, comment via VorbisComment, setup: loop-filter limits,
quant ranges -> dequant tables, the 80 Huffman trees as collapsed lookup tables),
intra / inter frames, coded SB / block flags, MB modes (8 alphabets), MVs (VLC /
CLC, last / prior, 4MV with per-format chroma averages, half / quarter-pel),
block qi, DCT tokens with EOB runs, DC prediction, the spec IDCT, loop filter,
golden / previous refs, 4:2:0 / 4:2:2 / 4:4:4, picture-region crop, empty-packet
dupes. Bit-exact with ffmpeg on every frame of 12 fixtures (tests/codecs/theora).

Outside the folder: codecs/video/Video BUILTIN entry theora gets a decoder
(track.config = Xiph-laced headers, as Matroska's CodecPrivate);
licenses/libtheora-BSD.txt + NOTICE row.
2026-10-31 14:16:35 -05:00
4DBug 9a6ddd5c16 ws-3d3: codecs/model/Draco: Draco decoder (port of Google Draco 1.5.7, Apache-2.0)
Meshes (sequential; Edgebreaker standard / predictive / valence, topology splits,
attribute seams) and sequential point clouds, bitstreams 1.0 - 2.2; generic /
integer / quantization / octahedral normal attribute decoders; difference,
parallelogram, multi and constrained multi-parallelogram, tex coords (deprecated
and portable, exact int64 arithmetic) and geometric normal predictions; metadata.
Byte-exact against libdraco on 196 files (Draco test data 0.9 - 2.2 and
draco_encoder outputs at every level / quantization). kd-tree point clouds:
UNSUPPORTED for now.
2026-10-31 14:14:50 -05:00
4DBug 5bbb4227c2 ws-apifix: API.md / STYLE.md / README: music as audio, video as animated image, F.save extra files, variant(r), caps.extraFiles, F.music builder, bitrate in bit/s; type baseline 92 2026-10-31 14:14:11 -05:00
4DBug 6274eedd12 ws-apifix: MP4 AAC length matches ffmpeg: the edit list's length (Track.playDuration) cuts the end padding as well as the priming (codecDelay); a 1 s clip decodes to 44100 frames, not 45056. AudioWrap.trim(dec, skip, length?); the MP4 writer keeps the edit length of copied audio. Video tests compare the whole decoded audio length with ffmpeg (not yet for Matroska) 2026-10-31 14:13:08 -05:00
4DBug 998177e5ab ws-voxel: codecs/text/Nbt (NBT Java / Bedrock / network varint, SNBT parse + print, typed values), data/nbt, data/snbt
Shared change: codecs/compress/Deflate gains Deflate.peek(buf, off, len, n) (the first n inflated bytes of a
gzip / zlib / raw stream, for sniffing gzip-wrapped NBT) through a backward-compatible prefix flag on
Inflate.raw; gunzip's header parsing moved into a local helper both use.
2026-10-31 14:12:46 -05:00