Format

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home/drbiz/public/tools.realism.com/modules/book/book.module).

An SRC file contains a Header and a Data section. The Header is divied into a preable and a body. The preamble is a fixed size as binary data. The header body is encoded in the format specified in the preamble. For this version the only format is JSON. It is described below. The Data section is binary encoded and is described in section-entity TBD.

Header

The SRC file Header is JSON-encoded text that describes all characteristics of the file and embedded data. It is a single array consisting of the following elements

Data

The "Data" block of the SRC file then simply contains bytes, which are described within the structured header to be a sequence of chunks. A valid structured header must describe all of the "Data" block by a list of subsequent, non-overlapping chunks. There must not be any range of bytes within the body that is not described by a chunk.

Header
Preamble
Body
meta
bufferChunks
bufferViews
textureViews
accessors
meshes
attributes
progressiveMeta
textures
Data
Chunk 1
Chunk 2
Chunk 3
...
Chunk N

Example

example here