"primitives",[
[
[
"type","PolygonCurve_run"
],
[
"startvertex",0,
"nprimitives",160,
"nvertices_rle",[202,6,201,40,202,18,201,18,202,17,201,18,202,30,201,8,202,5]
]
]
]
All 160 prims in this example consist of 80 verts each, so am not sure why this as RLE not just says
[160, 80]
, maybe with some additional prefix bits to indicate this is an RLE'd value…If I look at the data array as hexdump, I can reconcile the first few bytes, but it would be really, really helpful not having to try to reverse engineer this and get some official word of wisdom about this format, please! I could not find documentation about this anywhere…
00000000: ca 06 c9 28 ca 12 c9 12 ...(....
00000008: ca 11 c9 12 ca 1e c9 08 ........
00000010: ca 05 00 00 00 00 00 00 ........
// first 3 bytes
c a 0 6 c 9
// as bitstream
1100 1010 0000 0110 1100 1001
// 3 bits for RLE type?
110
// 0x50 (80 decimal => number of vertices)
0101 0000
// 0x6c9 = stops making sense here... help needed!
0110 1100 1001