306 lines
13 KiB
Plaintext
306 lines
13 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (buku_A)
|
|
****************************************************************************************************/
|
|
#define buku_A_AMB_SCALE 0.3
|
|
#define ShapeColor_buku_A(R,G,B) {{R*buku_A_AMB_SCALE ,G*buku_A_AMB_SCALE ,B*buku_A_AMB_SCALE ,0 ,R*buku_A_AMB_SCALE ,G*buku_A_AMB_SCALE ,B*buku_A_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_buku_A[] = {
|
|
ShapeColor_buku_A(241,166,140),
|
|
ShapeColor_buku_A(255,255,255),
|
|
ShapeColor_buku_A( 54, 26, 28),
|
|
};
|
|
|
|
static Vtx vtx_buku_A_0[] = {
|
|
{ 239, -320, 320, 0, 203, 530, 68, -83, 66, 255},
|
|
{ 6, -197, 290, 0, 372, 190, 0, -103, 73, 255},
|
|
{ 6, -284, 420, 0, 267, 636, 1, 7, 126, 255},
|
|
{ 123, -217, 469, 0, 369, 578, 9, -103, 72, 255},
|
|
{ 7, -195, 518, 0, 407, 618, 0, -81, 97, 255},
|
|
{ -109, -217, 471, 0, 369, 580, -8, -103, 72, 255},
|
|
{ -227, -320, 324, 0, 203, 536, -67, -83, 67, 255},
|
|
};
|
|
|
|
static Vtx vtx_buku_A_1[] = {
|
|
{ -512, -352, 46, 0, 856, 794, -85, -89, -27, 255},
|
|
{ -248, -181, 193, 0, 94, 684, -11, 101, 75, 255},
|
|
{ -508, -306, 182, 0, 816, 650, -81, 71, 65, 255},
|
|
{ -451, -258, 151, 0, 664, 694, -77, 100, 8, 255},
|
|
{ -450, -258, 81, 0, 678, 768, -59, 107, -31, 255},
|
|
{ -352, -273, -31, 0, 432, 906, -36, 76, -94, 255},
|
|
{ -269, -214, 84, 0, 176, 796, 107, 27, -61, 255},
|
|
{ 4, -82, -352, 0, 384, 704, 0, -60, 111, 255},
|
|
{ 3, 43, -352, 0, 554, 698, -1, 60, 111, 255},
|
|
{ -44, -19, -501, 0, 458, 800, -126, -1, -6, 255},
|
|
{ 52, -18, -501, 0, 458, 800, 126, 1, -6, 255},
|
|
{ 6, -222, -550, 0, 182, 844, 0, -123, -31, 255},
|
|
{ 1, 184, -550, 0, 728, 822, -1, 123, -30, 255},
|
|
{ 4, -94, -615, 0, 348, 880, 0, -27, -124, 255},
|
|
{ 3, 56, -615, 0, 552, 872, 0, 27, -124, 255},
|
|
{ 513, -352, 46, 0, 482, 860, 85, -89, -27, 255},
|
|
{ 353, -273, -31, 0, 896, 900, 36, 76, -94, 255},
|
|
{ 451, -258, 81, 0, 626, 798, 59, 107, -31, 255},
|
|
{ 452, -258, 151, 0, 608, 716, 77, 100, 8, 255},
|
|
{ 509, -306, 182, 0, 458, 698, 81, 71, 65, 255},
|
|
{ 270, -214, 84, 0, 1072, 736, -107, 27, -61, 255},
|
|
{ 249, -181, 193, 0, 1098, 600, 11, 101, 75, 255},
|
|
};
|
|
|
|
static Vtx vtx_buku_A_2[] = {
|
|
{ 51, 274, 117, 0, 360, 626, 107, 65, 18, 255},
|
|
{ 5, 317, 341, 0, -14, 458, 0, 89, 90, 255},
|
|
{ 5, 215, 291, 0, 72, 912, 1, 89, 90, 255},
|
|
{ -42, 274, 118, 0, 358, 626, -106, 65, 19, 255},
|
|
{ 3, 404, -20, 0, 586, 18, 0, 126, -14, 255},
|
|
{ 1, 191, -223, 0, 928, 960, 0, 109, -65, 255},
|
|
};
|
|
|
|
static Vtx vtx_buku_A_3[] = {
|
|
{ 261, 127, 217, 0, 0, -2344, 95, 83, 7, 255},
|
|
{ 350, -212, 251, 0, -196, -646, 124, -10, 24, 255},
|
|
{ 222, 29, -150, 0, 1808, -1854, 104, 35, -63, 255},
|
|
{ 0, 44, -355, 0, 2828, -1928, 0, 47, -117, 255},
|
|
{ 0, -85, -355, 0, 2828, -1278, -1, -29, -123, 255},
|
|
{ -218, 29, -147, 0, 1788, -1854, -105, 35, -61, 255},
|
|
{ 1, 191, -223, 0, 2172, -2664, 0, 109, -65, 255},
|
|
{ -246, -210, -101, 0, 1560, -654, -89, -72, -52, 255},
|
|
{ -251, 127, 221, 0, -48, -2344, -95, 83, 8, 255},
|
|
{ -339, -212, 257, 0, -224, -646, -123, -10, 26, 255},
|
|
{ 1, -337, -197, 0, 2040, -22, 0, -107, -67, 255},
|
|
{ 251, -210, -105, 0, 1580, -654, 88, -72, -54, 255},
|
|
{ -227, -320, 324, 0, -560, -106, -67, -83, 67, 255},
|
|
{ 230, -105, 361, 0, -744, -1182, 93, 21, 83, 255},
|
|
{ 239, -320, 320, 0, -540, -106, 68, -83, 66, 255},
|
|
{ 51, 274, 117, 0, 468, -3076, 107, 65, 18, 255},
|
|
{ -42, 274, 118, 0, 464, -3076, -106, 65, 19, 255},
|
|
{ 1, 191, -223, 0, 2172, -2664, 0, 109, -65, 255},
|
|
{ -251, 127, 221, 0, -48, -2344, -95, 83, 8, 255},
|
|
{ -58, 79, 436, 0, -1120, -2104, -29, 66, 103, 255},
|
|
{ 5, 215, 291, 0, -396, -2784, 1, 89, 90, 255},
|
|
{ -217, -105, 364, 0, -760, -1182, -92, 21, 84, 255},
|
|
{ -339, -212, 257, 0, -224, -646, -123, -10, 26, 255},
|
|
{ 230, -105, 361, 0, -744, -1182, 93, 21, 83, 255},
|
|
{ 350, -212, 251, 0, -196, -646, 124, -10, 24, 255},
|
|
{ 261, 127, 217, 0, 0, -2344, 95, 83, 7, 255},
|
|
{ 65, 79, 434, 0, -1108, -2104, 31, 66, 103, 255},
|
|
{ 51, 274, 117, 0, 468, -3076, 107, 65, 18, 255},
|
|
{ 239, -320, 320, 0, -540, -106, 68, -83, 66, 255},
|
|
{ 251, -210, -105, 0, 1580, -654, 88, -72, -54, 255},
|
|
{ -227, -320, 324, 0, -560, -106, -67, -83, 67, 255},
|
|
};
|
|
|
|
static Vtx vtx_buku_A_4[] = {
|
|
{ 129, -136, 504, 0, 0, 0, 72, -13, 103, 255},
|
|
{ 123, -217, 469, 0, 0, 0, 9, -103, 72, 255},
|
|
{ 239, -320, 320, 0, 0, 0, 68, -83, 66, 255},
|
|
{ 230, -105, 361, 0, 0, 0, 93, 21, 83, 255},
|
|
{ 6, -284, 420, 0, 0, 0, 1, 7, 126, 255},
|
|
{ 6, -357, 343, 0, 0, 0, 0, -115, 53, 255},
|
|
{ -227, -320, 324, 0, 0, 0, -67, -83, 67, 255},
|
|
{ 7, -24, 547, 0, 0, 0, 0, 75, 101, 255},
|
|
{ 6, -7, 415, 0, 0, 0, 1, 38, 120, 255},
|
|
{ -217, -105, 364, 0, 0, 0, -92, 21, 84, 255},
|
|
{ -115, -136, 506, 0, 0, 0, -70, -13, 104, 255},
|
|
{ 7, -195, 518, 0, 0, 0, 0, -81, 97, 255},
|
|
{ -109, -217, 471, 0, 0, 0, -8, -103, 72, 255},
|
|
{ -217, -105, 364, 0, 0, 0, -92, 21, 84, 255},
|
|
{ -255, 129, 314, 0, 0, 0, -90, 66, 59, 255},
|
|
{ -251, 127, 221, 0, 0, 0, -95, 83, 8, 255},
|
|
{ 65, 79, 434, 0, 0, 0, 31, 66, 103, 255},
|
|
{ 6, -7, 415, 0, 0, 0, 1, 38, 120, 255},
|
|
{ 230, -105, 361, 0, 0, 0, 93, 21, 83, 255},
|
|
{ 267, 129, 309, 0, 0, 0, 91, 66, 57, 255},
|
|
{ 261, 127, 217, 0, 0, 0, 95, 83, 7, 255},
|
|
{ -58, 79, 436, 0, 0, 0, -29, 66, 103, 255},
|
|
{ 4, -377, 154, 0, 0, 0, 0, -126, -9, 255},
|
|
{ 239, -320, 320, 0, 0, 0, 68, -83, 66, 255},
|
|
{ 6, -357, 343, 0, 0, 0, 0, -115, 53, 255},
|
|
{ 251, -210, -105, 0, 0, 0, 88, -72, -54, 255},
|
|
{ -246, -210, -101, 0, 0, 0, -89, -72, -52, 255},
|
|
{ 1, -337, -197, 0, 0, 0, 0, -107, -67, 255},
|
|
{ -227, -320, 324, 0, 0, 0, -67, -83, 67, 255},
|
|
};
|
|
|
|
static Gfx gfx_buku_A_0[] = {
|
|
gs_Tani_LoadTextureImage2(p_shade_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7),
|
|
|
|
gsSPLight((&light_buku_A[0].l[0]),1 ),
|
|
gsSPLight((&light_buku_A[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_buku_A_0[0], 7, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 1, 0, 0),
|
|
gsSP1Triangle( 4, 1, 3, 0),
|
|
gsSP1Triangle( 5, 1, 4, 0),
|
|
gsSP1Triangle( 1, 6, 2, 0),
|
|
gsSP1Triangle( 5, 6, 1, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_buku_A_1[] = {
|
|
gs_Tani_LoadTextureImage2(puku_glass_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_buku_A[1].l[0]),1 ),
|
|
gsSPLight((&light_buku_A[1].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_buku_A_1[0], 15, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 0, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSP1Triangle( 5, 0, 4, 0),
|
|
gsSP1Triangle( 5, 6, 0, 0),
|
|
gsSP1Triangle( 0, 6, 1, 0),
|
|
gsSP1Triangle( 6, 4, 1, 0),
|
|
gsSP1Triangle( 1, 4, 3, 0),
|
|
gsSP1Triangle( 1, 3, 2, 0),
|
|
gsSP1Triangle( 5, 4, 6, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle(10, 8, 7, 0),
|
|
gsSP1Triangle( 9,11, 7, 0),
|
|
gsSP1Triangle(10, 7,11, 0),
|
|
gsSP1Triangle( 9, 8,12, 0),
|
|
gsSP1Triangle(12, 8,10, 0),
|
|
gsSP1Triangle(13, 9,14, 0),
|
|
gsSP1Triangle( 9,12,14, 0),
|
|
gsSP1Triangle(13,11, 9, 0),
|
|
gsSP1Triangle(12,10,14, 0),
|
|
gsSP1Triangle(13,14,10, 0),
|
|
gsSP1Triangle(10,11,13, 0),
|
|
gsSPVertex(&vtx_buku_A_1[15], 7, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSP1Triangle( 3, 4, 0, 0),
|
|
gsSP1Triangle( 0, 5, 1, 0),
|
|
gsSP1Triangle( 0, 6, 5, 0),
|
|
gsSP1Triangle( 4, 6, 0, 0),
|
|
gsSP1Triangle( 6, 2, 5, 0),
|
|
gsSP1Triangle( 2, 1, 5, 0),
|
|
gsSP1Triangle( 6, 3, 2, 0),
|
|
gsSP1Triangle( 3, 6, 4, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_buku_A_2[] = {
|
|
gs_Tani_LoadTextureImage2(puku_hair_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
gsSPVertex(&vtx_buku_A_2[0], 6, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 1, 3, 0),
|
|
gsSP1Triangle( 1, 4, 3, 0),
|
|
gsSP1Triangle( 1, 0, 4, 0),
|
|
gsSP1Triangle( 4, 5, 3, 0),
|
|
gsSP1Triangle( 4, 0, 5, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_buku_A_3[] = {
|
|
gs_Tani_LoadTextureImage2(puku_skin_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPVertex(&vtx_buku_A_3[0], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 3, 5, 0),
|
|
gsSP1Triangle( 5, 4, 7, 0),
|
|
gsSP1Triangle( 5, 8, 6, 0),
|
|
gsSP1Triangle( 9, 8, 5, 0),
|
|
gsSP1Triangle( 9, 5, 7, 0),
|
|
gsSP1Triangle( 2, 4, 3, 0),
|
|
gsSP1Triangle(10, 4,11, 0),
|
|
gsSP1Triangle( 7, 4,10, 0),
|
|
gsSP1Triangle(11, 4, 2, 0),
|
|
gsSP1Triangle( 9, 7,12, 0),
|
|
gsSP1Triangle( 2, 3, 6, 0),
|
|
gsSP1Triangle( 0, 2, 6, 0),
|
|
gsSP1Triangle( 2, 1,11, 0),
|
|
gsSP1Triangle( 1,13,14, 0),
|
|
gsSP1Triangle( 0, 6,15, 0),
|
|
gsSPVertex(&vtx_buku_A_3[16], 15, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 0, 0),
|
|
gsSP1Triangle( 2, 3, 0, 0),
|
|
gsSP1Triangle( 5, 2, 6, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle(10, 9,11, 0),
|
|
gsSP1Triangle(11, 4,10, 0),
|
|
gsSP1Triangle(10, 4, 3, 0),
|
|
gsSP1Triangle(12,13, 8, 0),
|
|
gsSP1Triangle( 5, 6,14, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_buku_A_4[] = {
|
|
|
|
gsSPLight((&light_buku_A[0].l[0]),1 ),
|
|
gsSPLight((&light_buku_A[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_buku_A_4[0], 13, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSP1Triangle( 2, 4, 5, 0),
|
|
gsSP1Triangle( 4, 6, 5, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle( 8, 7, 3, 0),
|
|
gsSP1Triangle( 7, 9,10, 0),
|
|
gsSP1Triangle( 7,11, 0, 0),
|
|
gsSP1Triangle(10,11, 7, 0),
|
|
gsSP1Triangle( 3, 7, 0, 0),
|
|
gsSP1Triangle( 0,11, 1, 0),
|
|
gsSP1Triangle( 6,10, 9, 0),
|
|
gsSP1Triangle(12,10, 6, 0),
|
|
gsSP1Triangle(12,11,10, 0),
|
|
|
|
gsSPLight((&light_buku_A[2].l[0]),1 ),
|
|
gsSPLight((&light_buku_A[2].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_buku_A_4[13], 9, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 3, 6, 7, 0),
|
|
gsSP1Triangle( 5, 6, 3, 0),
|
|
gsSP1Triangle( 3, 8, 4, 0),
|
|
gsSP1Triangle( 7, 6, 5, 0),
|
|
gsSP1Triangle( 8, 2, 1, 0),
|
|
gsSP1Triangle( 8, 1, 0, 0),
|
|
gsSP1Triangle( 4, 8, 0, 0),
|
|
|
|
gsSPLight((&light_buku_A[1].l[0]),1 ),
|
|
gsSPLight((&light_buku_A[1].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_buku_A_4[22], 7, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 3, 1, 0),
|
|
gsSP1Triangle( 4, 5, 0, 0),
|
|
gsSP1Triangle( 0, 5, 3, 0),
|
|
gsSP1Triangle( 2, 6, 0, 0),
|
|
gsSP1Triangle( 6, 4, 0, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_buku_A[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
|
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, 32, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_buku_A_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_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_buku_A_1),
|
|
gsSPDisplayList(gfx_buku_A_2),
|
|
|
|
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_buku_A_3),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
|
|
gsSPDisplayList(gfx_buku_A_4),
|
|
|
|
gsSPEndDisplayList()
|
|
};
|
|
|