ws-3d3: model/robloxmesh: Draco-compressed COREMESH (6.00 / 7.00, chunk v2) through codecs/model/Draco

Parse (native) gets the decode as a pcall-guarded lim.core callback from init, so
nothing throws through a native frame. Tests: draco_encoder streams of a UV sphere
and a coloured PLY at three levels wrapped in v6 / v7 chunks, byte for byte against
libdraco and equal to the same mesh as COREMESH v1; round trips; fuzz. The old
UNSUPPORTED fixture (garbage bytes in a v2 chunk) now expects CORRUPT. roblox.md
updated.
This commit is contained in:
4DBug committed 2026-10-31 16:03:50 -05:00
1 parent 47345b2c8f
commit 2768075add
7 files changed
+291 -36

No files matched your search

+2 -1
View File
@@ -78,7 +78,8 @@ A `.mesh` of any version from 1.00 to 7.00 loads as a one-mesh `Scene`:
- **Attributes:** `POSITION`, `NORMAL`, `TEXCOORD_0`, `TANGENT` and `COLOR_0`.
- **LODs:** LOD 0 is the primitive. The other LODs are in `mesh.extras.lods`.
- **Skinning:** bones become a skin with joint nodes, and the vertices get `JOINTS_0` / `WEIGHTS_0`.
- **Not decoded yet:** Draco-compressed meshes (7.00) return `UNSUPPORTED`.
- **Draco:** a Draco-compressed core mesh (6.00 / 7.00) decodes through `codecs/model/Draco`; `meta.source.draco` is
`true` for those files.
```luau
local scene = assert(F.load(meshBytes, { format = "robloxmesh" }))