Hi,
I'm trying to read the voxel format, and I managed to parse some of it but I'm stuck at one point:
After it says:
DWORD Number of voxel cells. Every cell is a volume 8x8x8 that contains WORDS (16 bits). 0 means that cell is empty, 65535 filled, 32767.5 position of the surface.
(Question 1) cells directly come in an array at this point, after the "DWORD number of voxel cells"?
doing so I get these values:
Number of voxel cells: 20303
x position: 2
y position: -786429
z position: 17432564
cell side: 1
but cell side is supposed to be 9! besides, the y and z position seem to be totally wrong. I'm sure I parse properly up until the name of the shader, however it says there:
"In general this set of characters consists of 2 parts 2 zero-terminated strings. First one is name of the shader, second XML data with shaders parameters. Every shader variable has own tag in this XML. If you dont need shader parameters just read all this as a single string."
(Question 2) does that mean that even though I get the number of characters of the shader from the previous serialized variable, there is still another null-terminated string after that one?
Anyway, I have scanned the binary file for the value 00 00 00 09 in hex, representing the 32-bits integer 9, and only a few occurences, so obviously the "cell side" variable that should be 9 is not there.
(Question 3) Or is it a 16-bit integer?
Thanks a lot for your time, I think what I'm doing could be useful for 3d coat users
Best regards