April 16Apr 16 Supporter 55 minutes ago, Jenny1367 said: Thanks for the update! Wondering if you know any tools to properly read them tho? >< Skeleton data are depth-first traversed structures and you need to parse their binary files to build tree files There are four versions of animation files. Compression type 4 is bit compression. They have a fixed magic number head. The problem is that I lack research on animation files and am not sure what the structure of the compressed data is. For other types, although I fully understand their structure, it is difficult for me to write a script.
April 16Apr 16 26 minutes ago, wq223 said: Skeleton data are depth-first traversed structures and you need to parse their binary files to build tree files There are four versions of animation files. Compression type 4 is bit compression. They have a fixed magic number head. The problem is that I lack research on animation files and am not sure what the structure of the compressed data is. For other types, although I fully understand their structure, it is difficult for me to write a script. got it, thanks for replying! Edited April 16Apr 16 by Jenny1367
April 24Apr 24 Supporter Completed animation construction for other versions for the first time, currently doing binary analysis on compression type 4
24 minutes ago24 min Building on the header notes earlier in this thread (wq223 / shak-otay / Durik256), here's a fullaccount of the Where Winds Meet .MESSIAH mesh geometry. It reconciles the pieces and fixes the partpeople got stuck on (vertices/indices "not working properly")..MESSIAH is a generic serialized-object wrapper, not a mesh-only format: magic(8) ".MESSIAH"a 4-byte sub-type, read as an int or a FourCC. Only some sub-types are geometry:int 8 = static mesh (the bulk), HRMD / SEMC = large rigged meshes (multi-LOD).int 1 = skeleton, int 3 = material, int 0 = texture stub, int 2 / int 5 / FourCCsDOMC/DOMD/ASCC = other object kinds (no vertex descriptor).Per-block head (a container may hold several blocks = LODs/parts):u16 identifier (0 normal, 2 for this game) u16 subgrid_count u32 vertex_count u32 index_count 4 × descriptor string (u16 length + ASCII), vertex-stream layouts then "None" padding 6 × f32 bbox (min xyz, max xyz) — slightly PADDED vs real vertices vertex_count/index_count are the two u32 right before the first descriptor (anchor on thedescriptor and read back — this skips the extra fixed fields in the larger HRMD/SEMC heads).Vertex format is self-describing via the descriptor strings. Each is one stream (ATTR_ATTR_…),ATTR = <Semantic><Count><Format>:Semantic: Pos Normal Texcoord Weight Index Binormal ColorFormat: F=float32 H=float16 B=uint8 U=uint32; size = count × sizeof(format)Examples: P3F_N4B_T2F(24B) / P3F_N4B_T2F_T2F(32B), optional C4B vertex color, T4H_B4H(16B)tangent+binormal halves, W4B_I4B(8B) skin. Streams are planar (separate blocks), notinterleaved. Index buffer is index_count × u16. Normals: u8 / 127.5 − 1 (xyz); flip V for OBJ.Why generic converters fail — the body layout is not fixed:the index buffer sits before OR after the vertex streams depending on the mesh;the subgrid (submesh) record size varies;the stored bbox is inflated slightly, so an exact min/max match misses.So hardcoded offsets only work for a subset. What works reliably is to locate the buffers: thevertex offset is the one whose vertex_count positions fall inside the (padded) stored bbox and spanat least half its diagonal, with an in-range, mostly-non-degenerate u16 index buffer directly beforeor after. If nothing fits, the mesh is rejected rather than emitted as garbage. A subgrid record's lastfour u32 are start_index, index_count, start_vertex, vertex_count.This decodes ~99.98% of the int8 meshes in a full-install sweep (rest safely rejected) and handlesHRMD/SEMC multi-LOD. Open-source decoder (.MESSIAH → OBJ): github.com/Zhincore/wwm-messiah-tools(wwm-mesh), format notes in docs/messiah-mesh.md.Doně mostly by an LLM agent, with me steering. Edited 19 minutes ago19 min by Zhincore
Create an account or sign in to comment