Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
CymbalPlant_gfx.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4INCLUDE_IMG("entity/model/CymbalPlant.png", D_0A000000_E992F0);
5INCLUDE_PAL("entity/model/CymbalPlant.pal", D_0A000800_E99AF0);
7 gsDPSetTextureLUT(G_TT_RGBA16),
8 gsDPLoadTLUT_pal16(0, D_0A000800_E99AF0),
9 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
10 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
11 gsDPSetTextureDetail(G_TD_CLAMP),
12 gsDPSetTextureLOD(G_TL_TILE),
13 gsDPLoadTextureBlock_4b(D_0A000000_E992F0, G_IM_FMT_CI, 64, 64, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 6, 6, G_TX_NOLOD, G_TX_NOLOD),
14 gsDPSetTexturePersp(G_TP_PERSP),
15 gsDPSetTextureFilter(G_TF_BILERP),
16 gsSPEndDisplayList(),
17};
18
19#include "entity/model/CymbalPlant_1.vtx.inc.c"
20#include "entity/model/CymbalPlant_2.vtx.inc.c"
21#include "entity/model/CymbalPlant_3.vtx.inc.c"
22#include "entity/model/CymbalPlant_4.vtx.inc.c"
23#include "entity/model/CymbalPlant_5.vtx.inc.c"
24#include "entity/model/CymbalPlant_6.vtx.inc.c"
25#include "entity/model/CymbalPlant_7.vtx.inc.c"
26#include "entity/model/CymbalPlant_8.vtx.inc.c"
27
29 1.000000, 0.000000, 0.000000, 2.668290,
30 0.000000, 1.000000, 0.000000, 26.668290,
31 0.000000, 0.000000, 1.000000, 0.000000,
32 0.000000, 0.000000, 0.000000, 1.000000
33);
34
36 1.000000, 0.000000, 0.000000, -2.331711,
37 0.000000, 1.000000, 0.000000, 26.668290,
38 0.000000, 0.000000, 1.000000, 0.000000,
39 0.000000, 0.000000, 0.000000, 1.000000
40);
41
43 gsDPPipeSync(),
44 gsSPMatrix(&Entity_CymbalPlant_LeftMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
45 gsDPSetCycleType(G_CYC_1CYCLE),
46 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
47 gsSPDisplayList(Entity_CymbalPlant_LoadTexture),
48 gsSPClearGeometryMode(G_LIGHTING),
49 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
50 gsSPVertex(D_0A000F28_E9A218, 21, 0),
51 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
52 gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
53 gsSP2Triangles(2, 6, 3, 0, 5, 6, 2, 0),
54 gsSP2Triangles(7, 6, 8, 0, 9, 6, 7, 0),
55 gsSP2Triangles(3, 6, 9, 0, 8, 6, 10, 0),
56 gsSP2Triangles(11, 6, 5, 0, 12, 6, 11, 0),
57 gsSP2Triangles(13, 6, 12, 0, 10, 6, 13, 0),
58 gsSP2Triangles(14, 0, 3, 0, 14, 3, 9, 0),
59 gsSP2Triangles(15, 14, 9, 0, 15, 9, 7, 0),
60 gsSP2Triangles(15, 7, 8, 0, 15, 8, 16, 0),
61 gsSP2Triangles(16, 8, 10, 0, 16, 10, 17, 0),
62 gsSP2Triangles(5, 4, 18, 0, 5, 18, 11, 0),
63 gsSP2Triangles(19, 17, 10, 0, 19, 10, 13, 0),
64 gsSP2Triangles(20, 19, 13, 0, 20, 13, 12, 0),
65 gsSP2Triangles(18, 20, 12, 0, 18, 12, 11, 0),
66 gsSPPopMatrix(G_MTX_MODELVIEW),
67 gsSPEndDisplayList(),
68};
69
71 gsDPPipeSync(),
72 gsSPMatrix(&Entity_CymbalPlant_LeftMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
73 gsDPSetCycleType(G_CYC_1CYCLE),
74 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
75 gsSPDisplayList(Entity_CymbalPlant_LoadTexture),
76 gsSPClearGeometryMode(G_LIGHTING),
77 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
78 gsSPVertex(D_0A000DB8_E9A0A8, 23, 0),
79 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
80 gsSP2Triangles(4, 0, 3, 0, 4, 3, 5, 0),
81 gsSP2Triangles(4, 6, 0, 0, 0, 6, 1, 0),
82 gsSP2Triangles(7, 6, 8, 0, 8, 6, 4, 0),
83 gsSP2Triangles(1, 6, 9, 0, 10, 6, 7, 0),
84 gsSP2Triangles(9, 6, 11, 0, 11, 6, 12, 0),
85 gsSP2Triangles(12, 6, 13, 0, 13, 6, 10, 0),
86 gsSP2Triangles(1, 9, 14, 0, 1, 14, 2, 0),
87 gsSP2Triangles(8, 4, 5, 0, 8, 5, 15, 0),
88 gsSP2Triangles(16, 7, 8, 0, 16, 8, 15, 0),
89 gsSP2Triangles(17, 10, 7, 0, 17, 7, 16, 0),
90 gsSP2Triangles(11, 18, 14, 0, 11, 14, 9, 0),
91 gsSP2Triangles(19, 10, 17, 0, 19, 17, 20, 0),
92 gsSP2Triangles(11, 21, 22, 0, 11, 22, 18, 0),
93 gsSP2Triangles(21, 19, 20, 0, 21, 20, 22, 0),
94 gsSPPopMatrix(G_MTX_MODELVIEW),
95 gsSPEndDisplayList(),
96};
97
99 gsDPPipeSync(),
100 gsSPMatrix(&Entity_CymbalPlant_LeftMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
101 gsDPSetCycleType(G_CYC_1CYCLE),
102 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
103 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
104 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
105 gsSPClearGeometryMode(G_LIGHTING),
106 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
107 gsSPVertex(&D_0A0009C8_E99CB8[8], 1, 0),
108 gsSPVertex(D_0A000D28_E9A018, 9, 1),
109 gsSP2Triangles(1, 0, 2, 0, 1, 2, 3, 0),
110 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
111 gsSP2Triangles(7, 6, 8, 0, 7, 8, 9, 0),
112 gsSP2Triangles(3, 2, 5, 0, 3, 5, 4, 0),
113 gsSPPopMatrix(G_MTX_MODELVIEW),
114 gsSPEndDisplayList(),
115};
116
118 gsSPMatrix(&Entity_CymbalPlant_LeftMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
119 gsSPDisplayList(Entity_CymbalPlant_RenderNode5),
120 gsSPDisplayList(Entity_CymbalPlant_RenderNode4),
121 gsSPDisplayList(Entity_CymbalPlant_RenderNode3),
122 gsSPPopMatrix(G_MTX_MODELVIEW),
123 gsSPEndDisplayList(),
124};
125
127 gsDPPipeSync(),
128 gsSPMatrix(&Entity_CymbalPlant_RightMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
129 gsDPSetCycleType(G_CYC_1CYCLE),
130 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
131 gsSPDisplayList(Entity_CymbalPlant_LoadTexture),
132 gsSPClearGeometryMode(G_LIGHTING),
133 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
134 gsSPVertex(D_0A000BB8_E99EA8, 23, 0),
135 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
136 gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
137 gsSP2Triangles(2, 6, 3, 0, 5, 6, 2, 0),
138 gsSP2Triangles(7, 6, 8, 0, 9, 6, 7, 0),
139 gsSP2Triangles(3, 6, 9, 0, 8, 6, 10, 0),
140 gsSP2Triangles(11, 6, 5, 0, 12, 6, 11, 0),
141 gsSP2Triangles(13, 6, 12, 0, 10, 6, 13, 0),
142 gsSP2Triangles(14, 0, 3, 0, 14, 3, 9, 0),
143 gsSP2Triangles(15, 14, 9, 0, 15, 9, 7, 0),
144 gsSP2Triangles(15, 7, 8, 0, 15, 8, 16, 0),
145 gsSP2Triangles(16, 8, 10, 0, 16, 10, 17, 0),
146 gsSP2Triangles(5, 4, 18, 0, 5, 18, 11, 0),
147 gsSP2Triangles(19, 17, 10, 0, 19, 10, 20, 0),
148 gsSP2Triangles(18, 21, 22, 0, 18, 22, 11, 0),
149 gsSP2Triangles(21, 19, 20, 0, 21, 20, 22, 0),
150 gsSPPopMatrix(G_MTX_MODELVIEW),
151 gsSPEndDisplayList(),
152};
153
155 gsDPPipeSync(),
156 gsSPMatrix(&Entity_CymbalPlant_RightMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
157 gsDPSetCycleType(G_CYC_1CYCLE),
158 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
159 gsSPDisplayList(Entity_CymbalPlant_LoadTexture),
160 gsSPClearGeometryMode(G_LIGHTING),
161 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
162 gsSPVertex(D_0A000A68_E99D58, 21, 0),
163 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
164 gsSP2Triangles(4, 0, 3, 0, 4, 3, 5, 0),
165 gsSP2Triangles(4, 6, 0, 0, 0, 6, 1, 0),
166 gsSP2Triangles(7, 6, 8, 0, 8, 6, 4, 0),
167 gsSP2Triangles(1, 6, 9, 0, 10, 6, 7, 0),
168 gsSP2Triangles(9, 6, 11, 0, 11, 6, 12, 0),
169 gsSP2Triangles(12, 6, 13, 0, 13, 6, 10, 0),
170 gsSP2Triangles(1, 9, 14, 0, 1, 14, 2, 0),
171 gsSP2Triangles(8, 4, 5, 0, 8, 5, 15, 0),
172 gsSP2Triangles(16, 7, 8, 0, 16, 8, 15, 0),
173 gsSP2Triangles(17, 10, 7, 0, 17, 7, 16, 0),
174 gsSP2Triangles(11, 18, 14, 0, 11, 14, 9, 0),
175 gsSP2Triangles(13, 10, 17, 0, 13, 17, 19, 0),
176 gsSP2Triangles(12, 13, 19, 0, 12, 19, 20, 0),
177 gsSP2Triangles(11, 12, 20, 0, 11, 20, 18, 0),
178 gsSPPopMatrix(G_MTX_MODELVIEW),
179 gsSPEndDisplayList(),
180};
181
183 gsDPPipeSync(),
184 gsSPMatrix(&Entity_CymbalPlant_RightMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
185 gsDPSetCycleType(G_CYC_1CYCLE),
186 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
187 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
188 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
189 gsSPClearGeometryMode(G_LIGHTING),
190 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
191 gsSPVertex(D_0A0009C8_E99CB8, 10, 0),
192 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
193 gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
194 gsSP2Triangles(5, 4, 6, 0, 5, 6, 7, 0),
195 gsSP2Triangles(7, 6, 8, 0, 7, 8, 9, 0),
196 gsSPPopMatrix(G_MTX_MODELVIEW),
197 gsSPEndDisplayList(),
198};
199
201 gsSPMatrix(&Entity_CymbalPlant_RightMtx, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
202 gsSPDisplayList(Entity_CymbalPlant_RenderNode8),
203 gsSPDisplayList(Entity_CymbalPlant_RenderNode9),
204 gsSPDisplayList(Entity_CymbalPlant_RenderNode7),
205 gsSPPopMatrix(G_MTX_MODELVIEW),
206 gsSPEndDisplayList(),
207};
208
210 gsSPDisplayList(D_0A001540_E9A830),
211 gsSPDisplayList(D_0A001308_E9A5F8),
212 gsSPEndDisplayList(),
213};
214
216 gsDPPipeSync(),
217 gsDPSetCycleType(G_CYC_1CYCLE),
218 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
219 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
220 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
221 gsSPClearGeometryMode(G_LIGHTING),
222 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
223 gsSPVertex(D_0A000968_E99C58, 6, 0),
224 gsSP2Triangles(0, 1, 2, 0, 0, 3, 4, 0),
225 gsSP2Triangles(0, 4, 1, 0, 3, 5, 4, 0),
226 gsSPEndDisplayList(),
227};
228
230 gsDPPipeSync(),
231 gsDPSetCycleType(G_CYC_1CYCLE),
232 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
233 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
234 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
235 gsSPClearGeometryMode(G_LIGHTING),
236 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
237 gsSPVertex(D_0A0008C8_E99BB8, 6, 0),
238 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
239 gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
240 gsSPVertex(D_0A0008C8_E99BB8, 1, 0),
241 gsSPVertex(&D_0A0008C8_E99BB8[3], 7, 1),
242 gsSP2Triangles(0, 1, 4, 0, 0, 4, 5, 0),
243 gsSP2Triangles(2, 6, 7, 0, 2, 7, 3, 0),
244 gsSPEndDisplayList(),
245};
246
248 gsSPDisplayList(Entity_CymbalPlant_RenderNode1),
249 gsSPDisplayList(Entity_CymbalPlant_RenderNode10),
250 gsSPEndDisplayList(),
251};
252
254 gsSPDisplayList(D_0A001658_E9A948),
255 gsSPDisplayList(D_0A001570_E9A860),
256 gsSPEndDisplayList(),
257};
258
260 gsSPDisplayList(D_0A001670_E9A960),
261 gsSPEndDisplayList(),
262};
Gfx Entity_CymbalPlant_RenderNode4[]
Gfx D_0A001570_E9A860[]
Gfx Entity_CymbalPlant_RenderNode8[]
Gfx Entity_CymbalPlant_RenderNode3[]
Mtx Entity_CymbalPlant_LeftMtx
Mtx Entity_CymbalPlant_RightMtx
Gfx D_0A001658_E9A948[]
Gfx Entity_CymbalPlant_RenderNode10[]
Gfx Entity_CymbalPlant_RenderNode1[]
Gfx D_0A001308_E9A5F8[]
Gfx D_0A001540_E9A830[]
Gfx D_0A001670_E9A960[]
Gfx Entity_CymbalPlant_RenderNode5[]
Gfx Entity_CymbalPlant_RenderNode7[]
Gfx D_0A001688_E9A978[]
Gfx Entity_CymbalPlant_LoadTexture[]
Gfx Entity_CymbalPlant_RenderNode9[]
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233