Mercurial > touhou-doc
annotate 06/std.xhtml @ 2:0a7e6e3d5327
Improve anm and std documentation.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 02 Aug 2011 15:45:13 +0200 |
parents | b1bec4b5ccf3 |
children | bd0f1253691d |
rev | line source |
---|---|
0 | 1 <?xml version="1.0" encoding="utf-8"?> |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
2 <?xml-stylesheet type="text/css" href="../style.css"?> |
0 | 3 <!DOCTYPE html> |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
0 | 5 <head> |
6 <title>STD format</title> | |
7 </head> | |
8 <body> | |
9 <h1>STD format</h1> | |
10 | |
11 <h2>Header</h2> | |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
12 <pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
13 typedef struct { |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
14 uint16_t nb_objects; // Number of background objects contained in the file |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
15 uint16_t nb_faces; // Number of faces/quads for the aforementioned objects |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
16 uint32_t faces_offset; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
17 uint32_t script_offset; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
18 uint32_t unknown; // Always 0 |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
19 char stage_name[128]; // Name of the stage in SHIFT_JIS |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
20 char song1_name[128]; // Name of the first song in SHIFT_JIS |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
21 char song2_name[128]; // Name of the second song in SHIFT_JIS |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
22 char song3_name[128]; // ? A single blank if unused |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
23 char song4_name[128]; // ? A single blank if unused |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
24 char song1_path[128]; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
25 char song2_path[128]; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
26 char song3_path[128]; // ? A single blank if unused |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
27 char song4_path[128]; // ? A single blank if unused |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
28 } thstd_header_t; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
29 </pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
30 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
31 <h2>First section</h2> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
32 <p>This section is responsible for creating objects from the stgxbg.anm file.</p> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
33 <pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
34 struct object_header { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
35 uint16_t id; // Always equal to the object's number. Not used by the game. |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
36 uint16_t unknown1; //TODO |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
37 float unknown2; //TODO |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
38 uint32_t unknown3; //TODO |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
39 float unknown4; //TODO |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
40 float unknown5; //TODO |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
41 float unknown6; //TODO |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
42 float unknown7; //TODO |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
43 }; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
44 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
45 typedef struct { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
46 uint16_t unknown; // 0 means a quad, 0xffff means the end. |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
47 uint16_t size; // 0x1c for a quad, 4 for the end marker. |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
48 uint16_t script_index; // Index of a script entry in the corresponding anm file |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
49 uint16_t _padding; // Unused, padding |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
50 float x; // x coordinate of the bottom-left corner of the quad |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
51 float y; // y coordinate of the bottom-left corner of the quad |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
52 float z; // z coordinate of the bottom-left corner of the quad |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
53 float width; // If not 0, override the sprite's width (else, use anm info) |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
54 float height; // If not 0, override the sprite's height (else, use anm info) |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
55 } thstd_object_t; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
56 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
57 struct object { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
58 struct object_header header; |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
59 struct object_quad quads[]; // Stop when quads.unknown == 0x0004ff |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
60 }; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
61 </pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
62 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
63 <p>The following description is symbolic.</p> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
64 <pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
65 struct section1 { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
66 uint32_t offsets[]; // header.nb_objects offsets towards objects |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
67 };*/ |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
68 </pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
69 |
0 | 70 |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
71 <h2>Second section</h2> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
72 <p>This section is responsible for placing objects from section 1 in the space.</p> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
73 <pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
74 typedef struct { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
75 uint16_t object_id; // must not exceed header.nb_objects |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
76 uint16_t unknown1; // Always 256, doesn't seem to change anything |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
77 float x; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
78 float y; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
79 float z; |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
80 } thstd_object_instance_t; |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
81 // ends with 16 \xFF |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
82 </pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
83 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
84 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
85 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
86 <h2>Third Section</h2> |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
87 <p>This section is responsible for camera movement, fog effects, and such things.</p> |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
88 <pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
89 typedef struct { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
90 uint32_t frame_num; |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
91 uint16_t type; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
92 uint16_t size; // always 0x0c, ignored by the game |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
93 uint32_t arg1; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
94 float arg2; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
95 float arg3; |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
96 } thstd_instr_t; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
97 |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
98 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
99 typedef struct { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
100 uint8_t b; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
101 uint8_t g; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
102 uint8_t r; |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
103 uint8_t unknown; //TODO: Seems useless. padding? Alpha? |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
104 } color_t; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
105 |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
106 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
107 typedef struct { // .type == 1 |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
108 color_t color; |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
109 float fog_start; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
110 float fog_end; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
111 } thstd_fog_instr_t; |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
112 |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
113 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
114 typedef struct { // type == 0 |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
115 float x; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
116 float y; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
117 float z; |
2
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
118 } thstd_viewpos_instr_t; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
119 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
120 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
121 typedef struct { // type == 2 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
122 uint32_t unknown_x; //TODO |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
123 uint32_t center_dy; // y delta between the camera position and its view center |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
124 float dz; // z coordinate of the camera, divided by -835.979370 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
125 } thstd_viewpos2_instr_t; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
126 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
127 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
128 typedef struct { // type == 3 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
129 uint32_t duration; // Duration of the interpolation, in frames |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
130 uint32_t unused[2]; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
131 } thstd_start_interpolating_viewpos_instr_t; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
132 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
133 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
134 typedef struct { // type == 4 |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
135 uint32_t duration; // Duration of the interpolation, in frames |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
136 uint32_t unused[2]; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
137 } thstd_start_interpolating_fog_instr_t; |
0a7e6e3d5327
Improve anm and std documentation.
Thibaut Girka <thib@sitedethib.com>
parents:
1
diff
changeset
|
138 |
1
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
139 // ends with 20 \xFF |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
140 </pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
141 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
142 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
143 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
144 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
145 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
146 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
147 |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
148 <pre> |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
149 typedef struct { |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
150 thstd_header_t header; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
151 uint32_t* offsets; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
152 list_t objects; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
153 list_t faces; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
154 list_t messages; |
b1bec4b5ccf3
Add anm and pbg3 file formats, and improve the std one.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
0
diff
changeset
|
155 } PACK_ATTRIBUTE thstd_t; |
0 | 156 </pre> |
157 </body> | |
158 </html> |