Talk:3DS

From GPWiki

I've noticed that these specs seem to imply that the length field of the chunk headers doesn't include the 6 bytes for the header itself, however in my specimen files the length field *does* include the length of the header. After reading the header, to skip to the next chunk you seek forward by (length - 6). -Doug Sheets

It's quite common for the length of the entire header (I don't know of anything that *doesn't* do it this way), including the length/size field. I suppose it can be confusing to remember that you already chewed up 6 bytes.

-- Ryan


I was more trying to point out that the specs say some ambiguous (or in the case of one spec I didn't link to, completely wrong) things regarding the length field of the headers such as "The chunk_len indicates the length of following data to be associated with this chunk." Upon first reading that I thought the header length field didn't include the 6 bytes for the header itself, which is incorrect.

--Doug Sheets