Users browsing this thread: 1 Guest(s)
Renderware Delta Morph Mesh ripping and repacking
#4
I found solution, simple lossless compression, RLE
first bit flag (mask 0x80) if 1 then include indices else exclude, other bits data (mask 0x7F)
data1 contains deltas, vertices, normals, colors and uv by flags from first unknown number (18 is vertices and normals)
example
Code:
FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE 92

FE : 0xFE & 0x80 != 0 -> include, count: 0xFE & 0x7F = 0x7E = 126
92 : 0x92 & 0x80 != 0 -> include, count: 0x92 & 0x7F = 0x12 = 18
in result 126 + ... + 126 + 18 = 1908, include all indices from 0 to 1908
for my model eyes open and smile
   
Reply
Thanked by:


Messages In This Thread
RE: Renderware Delta Morph Mesh ripping and repacking - by loginmen - 12-22-2021, 03:48 AM

Forum Jump: