BTG file format: Difference between revisions

Jump to navigation Jump to search
(Added description of vertex and normal list)
Line 283: Line 283:
=== Texture Coordinates List ===
=== Texture Coordinates List ===


TODO
The Texture Coordinates List object contains a list of texture coordinates to be referenced by other geometry primitives.
 
The properties of a Teture Coordinates List object are ignored.
 
Each element of a Texture Coordinates List object is a list of texture coordinates.
Each of the coordinates gets a unique index, starting with 0 for the first coordinate found in the file and incrementing by 1 for each further coordinate.
 
{| border="1"
|-
! Byte offset
! Type
! Description
|-
| align="right"| 0
| unsigned int
| number of bytes in this element
|-
| align="right"| 4
| texture coordinates
| texture coordinate list
|}
 
Each texture coordinate is a pair of single precision floating point values:
 
{| border="1"
|-
! Byte offset
! Type
! Description
|-
| align="right"| 0
| float
| x-part of the texture coordinate
|-
| align="right"| 4
| float
| y-part of the texture coordinate
|}
 
The number of coordinates in an element is therefore the number of bytes in the element divided by 8.


=== Color List ===
=== Color List ===
26

edits

Navigation menu