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.
This commit is contained in:
4DBug committed 2026-10-31 14:29:54 -05:00
1 parent 9a6ddd5c16
commit c3711a7ab1
10 files changed
+455 -14

No files matched your search

+2 -2
View File
@@ -313,8 +313,8 @@ do
t:check(e and (e.code == Err.CORRUPT or e.code == Err.TRUNCATED), "bad JSON: " .. tostring(e))
local _, e2 = decode('{"asset": {"version": "1.0"}}')
t:check(e2 and e2.code == Err.UNSUPPORTED, "glTF 1: " .. tostring(e2))
local _, e3 = decode('{"asset": {"version": "2.0"}, "extensionsRequired": ["KHR_draco_mesh_compression"]}')
t:check(e3 and e3.code == Err.UNSUPPORTED, "Draco: " .. tostring(e3))
local _, e3 = decode('{"asset": {"version": "2.0"}, "extensionsRequired": ["EXT_meshopt_compression"]}')
t:check(e3 and e3.code == Err.UNSUPPORTED, "meshopt: " .. tostring(e3))
local c = byName["Box/glTF"]
local _, e4 = decode(c.data)
t:check(e4 and e4.code == Err.IO, "missing .bin: " .. tostring(e4))