Hi,
We are working on a program that should be able to output PRC files. For various reasons, we are not able to use the SDK, but must instead write the file bit by bit. To better understand the structure of a PRC-file, we decided to start out by reading already existing files. Everything went smoothly until we ran into the compressed tessellated data section (SerializeHighlyCompressed3DTess), where Huffman coding is applied.
According to the PRC working draft and the PRC Format Specification, the huffman data is stored as unsigned integers. However, when we interpret the data that way it turns out that number of bits for each integer is sometimes larger than 32, indicating that the WriteUnsignedInteger-method was not used to produce the data at all.
All the previous data in the stream seems to be all right, which makes us quite sure that we are reading at the right position in the bit stream.
This is the file we are trying to read. Is there any additional documentation on the PRC file format available? Is it possible that some other method than WriteUnsignedInteger should be used to store huffman data?
Any help would be much appreciated!