Skip to content

Instantly share code, notes, and snippets.

@freem
Created December 29, 2018 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freem/4db2abb3094117c8f32d45b36e1eb7b4 to your computer and use it in GitHub Desktop.
Save freem/4db2abb3094117c8f32d45b36e1eb7b4 to your computer and use it in GitHub Desktop.
AKI polygon format
------------------
by S.K. Styles and jordyad (doc by freem)
general file format:
* header
* point/vertex data
* face data
this format is mad simple
[Header]
0x00 - Size/Scale
0x01 - Number of Points/Vertices
0x02 - Number of Faces
0x03 - ? (usually 0x00?)
0x04 - X point offset
0x05 - Y point offset
0x06 - Z point offset
0x07 - texture map offset (possibly split into nibbles?)
[Point/Vertex Data]
0x00: X (8 bit)
0x01: Y (8 bit)
0x02: Z (8 bit)
0x03: U? (8 bit)
0x04: V? (8 bit)
0x05: vertex color? (24 bit)
[Face Data]
Each face consists of 3 bytes, representing indices into the vertex data.
[Other Notes]
0x00 - Size/Scale
-----------------
0x01 - Number of Points/Vertices
--------------------------------
76543210
|
|
?
0x03 - ? (usually 0x00?)
------------------------
Sometimes it's not, though...
AKI polygon format
------------------
by S.K. Styles and jordyad (doc by freem)
general file format:
* header
* point/vertex data
* face data
this format is mad simple
[Header]
0x00 - Size/Scale
0x01 - Number of Points/Vertices
0x02 - Number of Faces
0x03 - ? (usually 0x00?)
0x04 - X point offset
0x05 - Y point offset
0x06 - Z point offset
0x07 - texture map offset (possibly split into nibbles?)
[Point/Vertex Data]
0x00: X (8 bit)
0x01: Y (8 bit)
0x02: Z (8 bit)
0x03: U? (8 bit)
0x04: V? (8 bit)
0x05: vertex color? (24 bit)
[Face Data]
Each face consists of 3 bytes, representing indices into the vertex data.
[Other Notes]
0x00 - Size/Scale
-----------------
0x01 - Number of Points/Vertices
--------------------------------
76543210
|
|
?
0x03 - ? (usually 0x00?)
------------------------
Sometimes it's not, though...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment