BTG file format: Difference between revisions

Jump to navigation Jump to search
m (adding links to SG docs)
(→‎Geometry Objects: correction)
Line 420: Line 420:
The only exception is the Point object type, which only has vertex indices by default.
The only exception is the Point object type, which only has vertex indices by default.


Each element of the object is a list of tuples, containing one or more unsigned integers in the following order:
Each element of the object is a list of tuples, containing one or more unsigned short integers in the following order:


# Vertex Index,
# Vertex Index,
Line 428: Line 428:


Only those fields indicated by the '''Index Types''' property are included in the file.
Only those fields indicated by the '''Index Types''' property are included in the file.
For example, if the '''Index Types''' property indicates that each entry has only a vertex index and a normal index, each entry consists of 8 byte, the first 4 bytes containing the vertex index and the second 4 bytes containing the normal index.
For example, if the '''Index Types''' property indicates that each entry has only a vertex index and a normal index, each entry consists of 4 bytes, the first 2 bytes containing the vertex index and the second 2 bytes containing the normal index.


The indices reference the respective lists, i.e. the vertex index references the vertex list.
The indices reference the respective lists, i.e. the vertex index references the vertex list.
240

edits

Navigation menu