(.TRI) FILE FORMAT
v1.0 (c) Laurent CANCé Françis (LCF) 2006
This encode animation in list of triangles frames.
This may help to convert animation in flash file format.
TRI FILE
. | 4 | bytes null terminated string "TRI" |
. | 4 | bytes null terminated string "HDR" |
. | 1 | dword number of frames (n) |
. | 1 | dword size screen x |
. | 1 | dword size screen y |
. | offset | FRAME(s) |
. | x (n) | FRAME struct |
FRAME struct
. | 4 | bytes null terminated string "FRM" |
. | 1 | dword number of triangles (NB) |
. | offset | TRIANGLE(s) |
. | x (NB) | TRIANGLE struct |
TRIANGLE struct
. | 2 | word x1,y1 |
. | 2 | word x2,y2 |
. | 2 | word x3,y3 |
. | 3 | byte r,g,b |
. | 4 | short xm1,ym1 |
. | 4 | short xm2,ym2 |
. | 4 | short xm3,ym3 |
. | 1 | uchar nt |