177 lines
8.6 KiB
Plaintext
177 lines
8.6 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (nes_body)
|
|
****************************************************************************************************/
|
|
#define nes_body_AMB_SCALE 0.5
|
|
#define ShapeColor_nes_body(R,G,B) {{R*nes_body_AMB_SCALE ,G*nes_body_AMB_SCALE ,B*nes_body_AMB_SCALE ,0 ,R*nes_body_AMB_SCALE ,G*nes_body_AMB_SCALE ,B*nes_body_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_nes_body[] = {
|
|
ShapeColor_nes_body(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_nes_body_0[] = {
|
|
{ 1085, -101, -1112, 0, 710, 924, 52, -42, -107, 255},
|
|
{ 934, -870, -414, 0, 558, 1232, 78, -96, -24, 255},
|
|
{ 154, -1257, -586, 0, 584, 1788, 17, -114, -52, 255},
|
|
{ 154, -1257, 585, 0, 374, 1788, 23, -116, 45, 255},
|
|
{ -975, -982, -550, 0, 726, 2348, -78, -88, -47, 255},
|
|
{ -236, -788, -1121, 0, 708, 1876, -22, -61, -109, 255},
|
|
{ -854, -1215, 0, 0, 480, 2344, -49, -116, 0, 255},
|
|
{ -765, 228, -1205, 0, 844, 1888, -46, 40, -110, 255},
|
|
{ -1340, -279, -695, 0, 870, 2356, -114, -15, -52, 255},
|
|
{ 1981, 326, -380, 0, 662, 292, 121, -8, -37, 255},
|
|
{ 560, 718, -1192, 0, 830, 992, 24, 52, -112, 255},
|
|
{ 1832, 492, -639, 0, 742, 332, 100, 49, -60, 255},
|
|
{ -236, -788, 1119, 0, 250, 1876, -9, -52, 115, 255},
|
|
{ 1085, -101, 1110, 0, 248, 924, 60, -48, 100, 255},
|
|
{ 934, -870, 390, 0, 404, 1232, 78, -93, 35, 255},
|
|
{ -765, 228, 1204, 0, 114, 1888, -62, 17, 108, 255},
|
|
{ -975, -982, 549, 0, 232, 2348, -84, -79, 52, 255},
|
|
{ -236, -788, 1119, 0, 250, 1876, -9, -52, 115, 255},
|
|
{ 154, -1257, 585, 0, 374, 1788, 23, -116, 45, 255},
|
|
{ 934, -870, 390, 0, 404, 1232, 78, -93, 35, 255},
|
|
{ 1981, 326, 380, 0, 296, 292, 111, -49, 34, 255},
|
|
{ 1085, -101, 1110, 0, 248, 924, 60, -48, 100, 255},
|
|
{ 934, -870, -414, 0, 558, 1232, 78, -96, -24, 255},
|
|
{ 560, 718, 1191, 0, 126, 992, 11, 55, 113, 255},
|
|
{ 1832, 492, 638, 0, 216, 332, 98, 52, 60, 255},
|
|
{ -854, -1215, 0, 0, 480, 2344, -49, -116, 0, 255},
|
|
{ 1573, 878, 611, 0, 112, 368, 76, 91, 43, 255},
|
|
{ 581, 1130, 741, 0, 60, 860, -11, 122, 30, 255},
|
|
{ -860, 411, 775, 0, 64, 1888, -73, 95, 39, 255},
|
|
{ 1981, 326, -380, 0, 662, 292, 121, -8, -37, 255},
|
|
{ 560, 718, -1192, 0, 830, 992, 24, 52, -112, 255},
|
|
{ 1573, 878, -612, 0, 844, 368, 58, 103, -43, 255},
|
|
{ 1832, 492, -639, 0, 742, 332, 100, 49, -60, 255},
|
|
{ 581, 1130, -744, 0, 898, 860, -16, 115, -49, 255},
|
|
{ -765, 228, -1205, 0, 844, 1888, -46, 40, -110, 255},
|
|
{ 934, -870, -414, 0, 558, 1232, 78, -96, -24, 255},
|
|
{ 1981, 326, -380, 0, 662, 292, 121, -8, -37, 255},
|
|
{ 1981, 326, 380, 0, 296, 292, 111, -49, 34, 255},
|
|
{ 581, 1130, 741, 0, 1082, 860, -11, 122, 30, 255},
|
|
{ 1573, 878, 611, 0, 1134, 368, 76, 91, 43, 255},
|
|
{ -860, 411, -776, 0, 894, 1888, -82, 94, -18, 255},
|
|
{ -860, 411, 775, 0, 1086, 1888, -73, 95, 39, 255},
|
|
{ -1340, -279, 694, 0, 1110, 2356, -118, 25, 38, 255},
|
|
{ -1340, -279, 694, 0, 88, 2356, -118, 25, 38, 255},
|
|
{ -765, 228, 1204, 0, 114, 1888, -62, 17, 108, 255},
|
|
{ -860, 411, 775, 0, 64, 1888, -73, 95, 39, 255},
|
|
{ -765, 228, 1204, 0, 114, 1888, -62, 17, 108, 255},
|
|
{ -1340, -279, 694, 0, 88, 2356, -118, 25, 38, 255},
|
|
{ -975, -982, 549, 0, 232, 2348, -84, -79, 52, 255},
|
|
{ -860, 411, -776, 0, 894, 1888, -82, 94, -18, 255},
|
|
{ -1340, -279, -695, 0, 870, 2356, -114, -15, -52, 255},
|
|
{ -1340, -279, 694, 0, 1110, 2356, -118, 25, 38, 255},
|
|
{ -765, 228, -1205, 0, 844, 1888, -46, 40, -110, 255},
|
|
{ -1340, -279, -695, 0, 874, 2352, -114, -15, -52, 255},
|
|
{ -975, -982, -550, 0, 736, 2344, -78, -88, -47, 255},
|
|
{ -975, -982, 549, 0, 1240, 2344, -84, -79, 52, 255},
|
|
{ 1832, 492, 638, 0, 698, 764, 98, 52, 60, 255},
|
|
{ 1981, 326, -380, 0, 352, 1476, 121, -8, -37, 255},
|
|
{ 1832, 492, -639, 0, 488, 1848, 100, 49, -60, 255},
|
|
{ 1832, 492, -639, 0, 742, 332, 100, 49, -60, 255},
|
|
{ 1573, 878, -612, 0, 844, 368, 58, 103, -43, 255},
|
|
{ 1573, 878, 611, 0, 1134, 368, 76, 91, 43, 255},
|
|
{ 1832, 492, -639, 0, 742, 332, 100, 49, -60, 255},
|
|
{ 1573, 878, 611, 0, 1134, 368, 76, 91, 43, 255},
|
|
{ 1832, 492, 638, 0, 1238, 332, 98, 52, 60, 255},
|
|
{ -975, -982, -550, 0, 726, 2348, -78, -88, -47, 255},
|
|
{ -854, -1215, 0, 0, 480, 2344, -49, -116, 0, 255},
|
|
{ -975, -982, 549, 0, 232, 2348, -84, -79, 52, 255},
|
|
{ -1340, -279, 694, 0, 1110, 2356, -118, 25, 38, 255},
|
|
{ -1340, -279, -695, 0, 870, 2356, -114, -15, -52, 255},
|
|
{ -975, -982, 549, 0, 1254, 2348, -84, -79, 52, 255},
|
|
};
|
|
|
|
static Gfx gfx_nes_body_0[] = {
|
|
gs_Tani_LoadTextureImage2(nes_skinC_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 7),
|
|
|
|
gsSPLight((&light_nes_body[0].l[0]),1 ),
|
|
gsSPLight((&light_nes_body[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_nes_body_0[0], 15, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 1, 3, 2, 0),
|
|
gsSP1Triangle( 2, 4, 5, 0),
|
|
gsSP1Triangle( 2, 5, 0, 0),
|
|
gsSP1Triangle( 3, 6, 2, 0),
|
|
gsSP1Triangle( 6, 4, 2, 0),
|
|
gsSP1Triangle( 7, 0, 5, 0),
|
|
gsSP1Triangle( 5, 8, 7, 0),
|
|
gsSP1Triangle( 5, 4, 8, 0),
|
|
gsSP1Triangle( 0, 9, 1, 0),
|
|
gsSP1Triangle( 7,10, 0, 0),
|
|
gsSP1Triangle(11, 9, 0, 0),
|
|
gsSP1Triangle(11, 0,10, 0),
|
|
gsSP1Triangle(12, 3,13, 0),
|
|
gsSP1Triangle( 1,14, 3, 0),
|
|
gsSP1Triangle( 3,14,13, 0),
|
|
gsSPVertex(&vtx_nes_body_0[15], 15, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 1, 3, 0),
|
|
gsSP1Triangle( 4, 5, 6, 0),
|
|
gsSP1Triangle( 7, 5, 4, 0),
|
|
gsSP1Triangle( 8, 2, 6, 0),
|
|
gsSP1Triangle( 6, 5, 9, 0),
|
|
gsSP1Triangle( 8, 6, 9, 0),
|
|
gsSP1Triangle( 3, 1,10, 0),
|
|
gsSP1Triangle( 8,11,12, 0),
|
|
gsSP1Triangle( 8,12,13, 0),
|
|
gsSP1Triangle( 8,13, 0, 0),
|
|
gsSP1Triangle( 8, 0, 2, 0),
|
|
gsSP1Triangle( 9,11, 8, 0),
|
|
gsSP1Triangle( 9, 5,14, 0),
|
|
gsSPVertex(&vtx_nes_body_0[30], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 1, 0, 3, 0),
|
|
gsSP1Triangle( 4, 3, 0, 0),
|
|
gsSP1Triangle( 5, 6, 7, 0),
|
|
gsSP1Triangle( 8, 1, 3, 0),
|
|
gsSP1Triangle( 8, 9, 1, 0),
|
|
gsSP1Triangle(10, 8, 3, 0),
|
|
gsSP1Triangle(10,11, 8, 0),
|
|
gsSP1Triangle( 4,10, 3, 0),
|
|
gsSP1Triangle(10,12,11, 0),
|
|
gsSP1Triangle(13,14,15, 0),
|
|
gsSPVertex(&vtx_nes_body_0[46], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 4, 3, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle(10,11,12, 0),
|
|
gsSP1Triangle(13,14,15, 0),
|
|
gsSPVertex(&vtx_nes_body_0[62], 9, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 7, 8, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_nes_body[] = {
|
|
gsDPPipeSync(),
|
|
|
|
gsDPSetCycleType(G_CYC_2CYCLE),
|
|
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
|
|
gsDPSetDepthSource(G_ZS_PIXEL),
|
|
gsDPSetFogColor(STAGE7_NESSY_FOG_R, STAGE7_NESSY_FOG_G, STAGE7_NESSY_FOG_B, 255),
|
|
gsSPFogPosition(STAGE7_NESSY_FOG_START, 1000),
|
|
gsSPSetGeometryMode(G_FOG),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, 7, 0, 0,0,0, 0,0,0),
|
|
|
|
gsSPTexture(0xffff,0xffff, 0, 0, G_ON),
|
|
|
|
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 6, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_nes_body_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF),
|
|
gsSPClearGeometryMode(G_FOG),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList()
|
|
};
|