233 lines
11 KiB
Plaintext
233 lines
11 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (p_chest)
|
|
****************************************************************************************************/
|
|
#define p_chest_AMB_SCALE 0.5
|
|
#define ShapeColor_p_chest(R,G,B) {{R*p_chest_AMB_SCALE ,G*p_chest_AMB_SCALE ,B*p_chest_AMB_SCALE ,0 ,R*p_chest_AMB_SCALE ,G*p_chest_AMB_SCALE ,B*p_chest_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_p_chest[] = {
|
|
ShapeColor_p_chest(255,255,255),
|
|
ShapeColor_p_chest(217,169,190),
|
|
};
|
|
|
|
static Vtx vtx_p_chest_0[] = {
|
|
{ 54, 70, -23, 0, -179, 143, 35, 108, -54, 255},
|
|
{ 52, 85, 0, 0, 224, 223, 23, 124, 0, 255},
|
|
{ 70, 67, -7, 0, 96, -135, 85, 91, -21, 255},
|
|
{ 36, 73, 19, 0, 542, 450, -11, 120, 38, 255},
|
|
{ 28, 75, 0, 0, 224, 584, -39, 120, 0, 255},
|
|
{ 36, 73, -18, 0, -94, 450, -11, 120, -39, 255},
|
|
{ 54, 70, 24, 0, 627, 143, 35, 109, 54, 255},
|
|
{ 70, 67, 8, 0, 351, -135, 81, 93, 25, 255},
|
|
};
|
|
|
|
static Vtx vtx_p_chest_1[] = {
|
|
{ 116, 24, 43, 0, 692, -612, 54, 61, 96, 255},
|
|
{ 119, -30, 36, 0, 658, -626, 48, -84, 81, 255},
|
|
{ 119, -30, -35, 0, 300, -626, 64, -97, -50, 255},
|
|
{ 116, 24, -42, 0, 266, -612, 47, 43, -109, 255},
|
|
{ 111, 45, 0, 0, 478, -586, -17, 123, -22, 255},
|
|
{ 85, 34, -65, 0, 150, -458, 75, 60, -82, 255},
|
|
{ 98, 18, -34, 0, 302, -522, 46, 82, -84, 255},
|
|
{ 98, -23, -34, 0, 302, -520, 89, -51, -73, 255},
|
|
{ 84, 50, -21, 0, 368, -452, 102, 74, -14, 255},
|
|
{ 23, -22, -70, 0, 126, -146, -33, -47, -112, 255},
|
|
{ 24, 37, -70, 0, 126, -150, -59, 35, -106, 255},
|
|
{ 54, 70, -23, 0, 358, -300, 35, 108, -54, 255},
|
|
{ 70, 67, -7, 0, 440, -382, 85, 91, -21, 255},
|
|
{ 20, 69, -39, 0, 278, -132, -35, 112, -46, 255},
|
|
{ 85, -21, -65, 0, 150, -456, 58, -59, -95, 255},
|
|
{ 36, 73, -18, 0, 384, -210, -11, 120, -39, 255},
|
|
{ 84, 50, 22, 0, 590, -452, 101, 75, 11, 255},
|
|
{ 70, 67, 8, 0, 518, -382, 81, 93, 25, 255},
|
|
{ -7, 37, -34, 0, 302, 8, -116, 42, -28, 255},
|
|
{ 54, 70, 24, 0, 600, -300, 35, 109, 54, 255},
|
|
{ 20, 69, 40, 0, 680, -132, -45, 111, 40, 255},
|
|
{ 85, 34, 66, 0, 808, -458, 75, 60, 82, 255},
|
|
{ 24, 37, 71, 0, 832, -150, -46, 44, 109, 255},
|
|
{ 23, -22, 71, 0, 832, -146, -47, -39, 111, 255},
|
|
{ 98, -23, 35, 0, 656, -520, 66, -72, 80, 255},
|
|
{ 98, 18, 35, 0, 656, -522, 72, 66, 80, 255},
|
|
{ 84, 50, 22, 0, 590, -452, 101, 75, 11, 255},
|
|
{ 70, 67, 8, 0, 518, -382, 81, 93, 25, 255},
|
|
{ 85, -21, 66, 0, 808, -454, 58, -59, 95, 255},
|
|
{ 95, 36, 0, 0, 478, -506, 37, 120, 13, 255},
|
|
{ 84, 50, -21, 0, 368, -452, 102, 74, -14, 255},
|
|
{ 20, 69, -39, 0, 278, -132, -35, 112, -46, 255},
|
|
{ -7, 37, -34, 0, 302, 8, -116, 42, -28, 255},
|
|
{ 28, 75, 0, 0, 478, -170, -39, 120, 0, 255},
|
|
{ 111, 45, 0, 0, 478, -586, -17, 123, -22, 255},
|
|
{ 98, 18, -34, 0, 302, -522, 46, 82, -84, 255},
|
|
{ 95, 36, 0, 0, 478, -506, 37, 120, 13, 255},
|
|
{ 84, 50, -21, 0, 368, -452, 102, 74, -14, 255},
|
|
{ 116, 24, 43, 0, 692, -612, 54, 61, 96, 255},
|
|
{ 98, 18, 35, 0, 656, -522, 72, 66, 80, 255},
|
|
{ 98, -23, 35, 0, 656, -520, 66, -72, 80, 255},
|
|
{ 119, -30, 36, 0, 658, -626, 48, -84, 81, 255},
|
|
{ 116, 24, -42, 0, 266, -612, 47, 43, -109, 255},
|
|
{ 24, 37, 71, 0, 832, -150, -46, 44, 109, 255},
|
|
{ 20, 69, 40, 0, 680, -132, -45, 111, 40, 255},
|
|
{ -7, 37, 35, 0, 656, 8, -110, 32, 52, 255},
|
|
{ 36, 73, 19, 0, 574, -210, -11, 120, 38, 255},
|
|
{ 28, 75, 0, 0, 478, -170, -39, 120, 0, 255},
|
|
{ 23, -45, -34, 0, 302, -146, -39, -115, -33, 255},
|
|
{ 86, -53, -34, 0, 302, -460, 64, -99, -45, 255},
|
|
{ 86, -53, 35, 0, 656, -460, 65, -104, 30, 255},
|
|
{ 54, 70, 24, 0, 600, -300, 35, 109, 54, 255},
|
|
{ 36, 73, 19, 0, 574, -210, -11, 120, 38, 255},
|
|
{ 20, 69, 40, 0, 680, -132, -45, 111, 40, 255},
|
|
{ 28, 75, 0, 0, 478, -170, -39, 120, 0, 255},
|
|
{ 36, 73, -18, 0, 384, -210, -11, 120, -39, 255},
|
|
{ 20, 69, -39, 0, 278, -132, -35, 112, -46, 255},
|
|
{ 85, -21, -65, 0, 150, -456, 58, -59, -95, 255},
|
|
{ -8, -22, -34, 0, 302, 10, -107, -43, -51, 255},
|
|
{ -8, -22, 35, 0, 656, 10, -110, -56, 27, 255},
|
|
{ 23, -22, -70, 0, 126, -146, -33, -47, -112, 255},
|
|
{ 23, -45, 35, 0, 656, -146, -35, -112, 47, 255},
|
|
{ 98, -23, -34, 0, 302, -520, 89, -51, -73, 255},
|
|
{ 85, -21, 66, 0, 808, -454, 58, -59, 95, 255},
|
|
{ 98, -23, 35, 0, 656, -520, 66, -72, 80, 255},
|
|
{ 86, -53, 35, 0, 656, -460, 65, -104, 30, 255},
|
|
{ 98, -23, -34, 0, 302, -520, 89, -51, -73, 255},
|
|
{ 85, -21, 66, 0, 808, -454, 58, -59, 95, 255},
|
|
{ -8, -22, -34, 0, 302, 10, -107, -43, -51, 255},
|
|
{ -8, -22, 35, 0, 656, 10, -110, -56, 27, 255},
|
|
{ -7, 37, -34, 0, 302, 8, -116, 42, -28, 255},
|
|
{ 23, -45, 35, 0, 656, -146, -35, -112, 47, 255},
|
|
{ 23, -22, 71, 0, 832, -146, -47, -39, 111, 255},
|
|
{ -7, 37, 35, 0, 656, 8, -110, 32, 52, 255},
|
|
{ 24, 37, 71, 0, 832, -150, -46, 44, 109, 255},
|
|
{ 20, 69, 40, 0, 680, -132, -45, 111, 40, 255},
|
|
{ 24, 37, -70, 0, 126, -150, -59, 35, -106, 255},
|
|
{ 23, -22, -70, 0, 126, -146, -33, -47, -112, 255},
|
|
{ 119, -30, -35, 0, 300, -626, 64, -97, -50, 255},
|
|
{ 119, -30, 36, 0, 658, -626, 48, -84, 81, 255},
|
|
{ 116, 24, -42, 0, 266, -612, 47, 43, -109, 255},
|
|
{ 119, -30, -35, 0, 300, -626, 64, -97, -50, 255},
|
|
{ 98, -23, -34, 0, 302, -520, 89, -51, -73, 255},
|
|
{ 98, 18, -34, 0, 302, -522, 46, 82, -84, 255},
|
|
};
|
|
|
|
static Gfx gfx_p_chest_0[] = {
|
|
gs_Tani_LoadTextureImage2(peach_j2_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 16, 0, 7),
|
|
|
|
gsSPLight((&light_p_chest[0].l[0]),1 ),
|
|
gsSPLight((&light_p_chest[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_p_chest_0[0], 8, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 1, 4, 0),
|
|
gsSP1Triangle( 4, 1, 5, 0),
|
|
gsSP1Triangle( 6, 1, 3, 0),
|
|
gsSP1Triangle( 7, 1, 6, 0),
|
|
gsSP1Triangle( 2, 1, 7, 0),
|
|
gsSP1Triangle( 5, 1, 0, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_p_chest_1[] = {
|
|
gs_Tani_LoadTextureImage2(peach_skirt_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_p_chest[1].l[0]),1 ),
|
|
gsSPLight((&light_p_chest[1].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_p_chest_1[0], 5, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 0, 0),
|
|
gsSP1Triangle( 3, 0, 2, 0),
|
|
|
|
gsSPLight((&light_p_chest[0].l[0]),1 ),
|
|
gsSPLight((&light_p_chest[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_p_chest_1[5], 14, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 3, 1, 0),
|
|
gsSP1Triangle( 4, 5, 0, 0),
|
|
gsSP1Triangle( 0, 6, 7, 0),
|
|
gsSP1Triangle( 7, 3, 0, 0),
|
|
gsSP1Triangle( 0, 8, 6, 0),
|
|
gsSP1Triangle( 0, 5, 8, 0),
|
|
gsSP1Triangle( 0, 9, 4, 0),
|
|
gsSP1Triangle( 2, 9, 0, 0),
|
|
gsSP1Triangle( 8,10, 6, 0),
|
|
gsSP1Triangle( 3, 7,11, 0),
|
|
gsSP1Triangle( 7,12,11, 0),
|
|
gsSP1Triangle( 8, 5,13, 0),
|
|
gsSPVertex(&vtx_p_chest_1[19], 15, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 2, 0),
|
|
gsSP1Triangle( 5, 6, 2, 0),
|
|
gsSP1Triangle( 6, 7, 2, 0),
|
|
gsSP1Triangle( 8, 0, 2, 0),
|
|
gsSP1Triangle( 1, 3, 2, 0),
|
|
gsSP1Triangle( 2, 7, 8, 0),
|
|
gsSP1Triangle( 4, 9, 2, 0),
|
|
gsSP1Triangle( 2, 9, 5, 0),
|
|
gsSP1Triangle(10,11, 7, 0),
|
|
gsSP1Triangle( 7, 6,10, 0),
|
|
gsSP1Triangle( 1,12,13, 0),
|
|
gsSP1Triangle(12, 1,14, 0),
|
|
gsSPVertex(&vtx_p_chest_1[34], 14, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 1, 3, 0),
|
|
gsSP1Triangle( 2, 4, 0, 0),
|
|
gsSP1Triangle( 2, 5, 4, 0),
|
|
gsSP1Triangle( 4, 5, 6, 0),
|
|
gsSP1Triangle( 6, 7, 4, 0),
|
|
gsSP1Triangle( 0, 8, 1, 0),
|
|
gsSP1Triangle( 9,10,11, 0),
|
|
gsSP1Triangle(10,12,13, 0),
|
|
gsSPVertex(&vtx_p_chest_1[48], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 7, 8, 0),
|
|
gsSP1Triangle( 9, 1, 0, 0),
|
|
gsSP1Triangle(10, 0,11, 0),
|
|
gsSP1Triangle(12, 0,10, 0),
|
|
gsSP1Triangle(13, 0, 2, 0),
|
|
gsSP1Triangle( 0,12, 9, 0),
|
|
gsSP1Triangle( 0,13,11, 0),
|
|
gsSP1Triangle(14, 1, 9, 0),
|
|
gsSP1Triangle( 2, 1,14, 0),
|
|
gsSP1Triangle(13, 2,15, 0),
|
|
gsSPVertex(&vtx_p_chest_1[64], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 1, 0, 0),
|
|
gsSP1Triangle( 4, 5, 6, 0),
|
|
gsSP1Triangle( 7, 8, 5, 0),
|
|
gsSP1Triangle( 5, 9, 6, 0),
|
|
gsSP1Triangle( 9, 5, 8, 0),
|
|
gsSP1Triangle(10, 9, 8, 0),
|
|
gsSP1Triangle( 6, 9,11, 0),
|
|
gsSP1Triangle( 3, 8, 7, 0),
|
|
gsSP1Triangle( 4, 6,12, 0),
|
|
gsSP1Triangle(13, 4,12, 0),
|
|
gsSP1Triangle(14,15, 0, 0),
|
|
gsSP1Triangle( 0, 2,14, 0),
|
|
gsSPVertex(&vtx_p_chest_1[80], 4, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 3, 0, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_p_chest[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB_ENVA, G_CC_MODULATERGB_ENVA),
|
|
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, 16, 16, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 4, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_p_chest_0),
|
|
|
|
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_p_chest_1),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|