ephtracy / voxel-model

1.22k stars 406 forks source link

PACK chunk is absent, but I have 22 saved models in the file #43

Open HummeL-AL opened 3 years ago

HummeL-AL commented 3 years ago

I tried to write my own .vox parser to easier implement new models to my game, but meet some troubles with detecting "PACK" chunk. So, I decided to use already existing solution. But it also throw a few errors. So, I just converted the file to byte[] and look at bytes, and... There isn't any byte row that can be converted to the "PACK" string.

File in bytes: Editor.log File: Tank.zip 08 - 17 06 35 08 - 17 16 27

kchapelier commented 3 years ago

I think there is only one object in this file, a single object with 22 nodes (there is a nGRP chunk with 0x16 for the "num of children nodes", see https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox-extension.txt#L82 for reference).

ephtracy commented 3 years ago

PACK is for the old frame based animation which is deprecated currently.