/*************************************************************************************************** Convert from NINGEN (buku_B) ****************************************************************************************************/ #define buku_B_AMB_SCALE 0.3 #define ShapeColor_buku_B(R,G,B) {{R*buku_B_AMB_SCALE ,G*buku_B_AMB_SCALE ,B*buku_B_AMB_SCALE ,0 ,R*buku_B_AMB_SCALE ,G*buku_B_AMB_SCALE ,B*buku_B_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} } static Lights1 light_buku_B[] = { ShapeColor_buku_B(241,166,140), ShapeColor_buku_B(255,255,255), ShapeColor_buku_B( 34, 26, 28), }; static Vtx vtx_buku_B_0[] = { { 6, -194, 96, 0, 405, 48, 0, -65, 109, 255}, { -227, -437, 270, 0, 201, 516, -70, -77, 71, 255}, { 6, -401, 385, 0, 222, 642, 0, 11, 126, 255}, { 7, -58, 559, 0, 485, 556, 0, -78, 100, 255}, { 123, -93, 488, 0, 461, 492, -10, -90, 88, 255}, { 239, -437, 266, 0, 201, 512, 71, -77, 70, 255}, { -108, -93, 488, 0, 461, 492, 12, -91, 87, 255}, }; static Vtx vtx_buku_B_1[] = { { 513, -352, 46, 0, 482, 860, 85, -89, -27, 255}, { 451, -258, 81, 0, 626, 798, 59, 107, -31, 255}, { 452, -258, 151, 0, 608, 716, 77, 100, 8, 255}, { 270, -214, 84, 0, 1072, 736, -107, 27, -61, 255}, { 353, -273, -31, 0, 896, 900, 36, 76, -94, 255}, { 249, -181, 193, 0, 1098, 600, 11, 101, 75, 255}, { 509, -306, 182, 0, 458, 698, 81, 71, 65, 255}, { 1, 184, -550, 0, 728, 822, -1, 123, -30, 255}, { 3, 43, -352, 0, 554, 698, -1, 60, 111, 255}, { 52, -18, -501, 0, 458, 800, 126, 1, -6, 255}, { 4, -94, -615, 0, 348, 880, 0, -27, -124, 255}, { 3, 56, -615, 0, 552, 872, 0, 27, -124, 255}, { 4, -82, -352, 0, 384, 704, 0, -60, 111, 255}, { 6, -222, -550, 0, 182, 844, 0, -123, -31, 255}, { -44, -19, -501, 0, 458, 800, -126, -1, -6, 255}, { -512, -352, 46, 0, 856, 794, -85, -89, -27, 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}, { -248, -181, 193, 0, 94, 684, -11, 101, 75, 255}, { -352, -273, -31, 0, 432, 906, -36, 76, -94, 255}, { -269, -214, 84, 0, 176, 796, 107, 27, -61, 255}, }; static Vtx vtx_buku_B_2[] = { { 5, 465, 287, 0, -14, 458, 0, 67, 107, 255}, { 51, 274, 117, 0, 360, 626, 106, 68, 6, 255}, { 3, 404, -20, 0, 586, 18, 0, 113, -57, 255}, { 5, 317, 249, 0, 72, 912, 1, 93, 86, 255}, { -42, 274, 118, 0, 358, 626, -106, 68, 7, 255}, { 1, 191, -223, 0, 928, 960, 0, 107, -67, 255}, }; static Vtx vtx_buku_B_3[] = { { -339, -241, 257, 0, -224, -646, -125, -8, 20, 255}, { -251, 216, 243, 0, -48, -2344, -90, 89, -2, 255}, { -218, 29, -147, 0, 1788, -1854, -104, 32, -64, 255}, { 0, -85, -355, 0, 2828, -1278, -1, -25, -124, 255}, { -246, -210, -101, 0, 1560, -654, -96, -54, -62, 255}, { 1, -356, -213, 0, 2040, -22, 0, -92, -87, 255}, { -227, -437, 270, 0, -560, -106, -70, -77, 71, 255}, { 222, 29, -150, 0, 1808, -1854, 103, 32, -66, 255}, { 0, 44, -355, 0, 2828, -1928, 0, 47, -117, 255}, { 251, -210, -105, 0, 1580, -654, 95, -54, -64, 255}, { 239, -437, 266, 0, -540, -106, 71, -77, 70, 255}, { 350, -241, 251, 0, -196, -646, 125, -7, 17, 255}, { -217, 18, 383, 0, -760, -1182, -96, 19, 79, 255}, { -42, 274, 118, 0, 464, -3076, -106, 68, 7, 255}, { 1, 191, -223, 0, 2172, -2664, 0, 107, -67, 255}, { -58, 168, 458, 0, -1120, -2104, -33, 73, 97, 255}, { 350, -241, 251, 0, -196, -646, 125, -7, 17, 255}, { 230, 18, 380, 0, -744, -1182, 97, 20, 78, 255}, { 239, -437, 266, 0, -540, -106, 71, -77, 70, 255}, { 261, 216, 239, 0, 0, -2344, 90, 89, -3, 255}, { 222, 29, -150, 0, 1808, -1854, 103, 32, -66, 255}, { 0, 44, -355, 0, 2828, -1928, 0, 47, -117, 255}, { 1, 191, -223, 0, 2172, -2664, 0, 107, -67, 255}, { 65, 168, 456, 0, -1108, -2104, 35, 73, 97, 255}, { 51, 274, 117, 0, 468, -3076, 106, 68, 6, 255}, { 5, 317, 249, 0, -396, -2784, 1, 93, 86, 255}, { -58, 168, 458, 0, -1120, -2104, -33, 73, 97, 255}, { -42, 274, 118, 0, 464, -3076, -106, 68, 7, 255}, }; static Vtx vtx_buku_B_4[] = { { -227, -437, 270, 0, 0, 0, -70, -77, 71, 255}, { -133, -12, 525, 0, 0, 0, -69, -19, 104, 255}, { -217, 18, 383, 0, 0, 0, -96, 19, 79, 255}, { 6, -401, 385, 0, 0, 0, 0, 11, 126, 255}, { 6, -503, 295, 0, 0, 0, 0, -117, 48, 255}, { 7, 111, 588, 0, 0, 0, 0, 91, 87, 255}, { 7, -58, 559, 0, 0, 0, 0, -78, 100, 255}, { 6, 81, 437, 0, 0, 0, 1, 49, 116, 255}, { 239, -437, 266, 0, 0, 0, 71, -77, 70, 255}, { 150, -12, 523, 0, 0, 0, 71, -18, 103, 255}, { 123, -93, 488, 0, 0, 0, -10, -90, 88, 255}, { -108, -93, 488, 0, 0, 0, 12, -91, 87, 255}, { 230, 18, 380, 0, 0, 0, 97, 20, 78, 255}, { -217, 18, 383, 0, 0, 0, -96, 19, 79, 255}, { -255, 217, 336, 0, 0, 0, -91, 64, 60, 255}, { -251, 216, 243, 0, 0, 0, -90, 89, -2, 255}, { 65, 168, 456, 0, 0, 0, 35, 73, 97, 255}, { 267, 217, 332, 0, 0, 0, 91, 65, 58, 255}, { 261, 216, 239, 0, 0, 0, 90, 89, -3, 255}, { 230, 18, 380, 0, 0, 0, 97, 20, 78, 255}, { 6, 81, 437, 0, 0, 0, 1, 49, 116, 255}, { -58, 168, 458, 0, 0, 0, -33, 73, 97, 255}, { 4, -488, 81, 0, 0, 0, 0, -120, -40, 255}, { 239, -437, 266, 0, 0, 0, 71, -77, 70, 255}, { 6, -503, 295, 0, 0, 0, 0, -117, 48, 255}, { -227, -437, 270, 0, 0, 0, -70, -77, 71, 255}, { 251, -210, -105, 0, 0, 0, 95, -54, -64, 255}, { -246, -210, -101, 0, 0, 0, -96, -54, -62, 255}, { 1, -356, -213, 0, 0, 0, 0, -92, -87, 255}, }; static Gfx gfx_buku_B_0[] = { gs_Tani_LoadTextureImage2(p_shade_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7), gsSPLight((&light_buku_B[0].l[0]),1 ), gsSPLight((&light_buku_B[0].a ),2 ), gsSPVertex(&vtx_buku_B_0[0], 7, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 3, 0, 4, 0), gsSP1Triangle( 4, 0, 5, 0), gsSP1Triangle( 5, 0, 2, 0), gsSP1Triangle( 6, 0, 3, 0), gsSP1Triangle( 1, 0, 6, 0), gsSPEndDisplayList() }; static Gfx gfx_buku_B_1[] = { gs_Tani_LoadTextureImage2(puku_glass_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7), gsSPLight((&light_buku_B[1].l[0]),1 ), gsSPLight((&light_buku_B[1].a ),2 ), gsSPVertex(&vtx_buku_B_1[0], 15, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 0, 3, 4, 0), gsSP1Triangle( 0, 5, 3, 0), gsSP1Triangle( 6, 5, 0, 0), gsSP1Triangle( 0, 4, 1, 0), gsSP1Triangle( 2, 6, 0, 0), gsSP1Triangle( 5, 2, 1, 0), gsSP1Triangle( 5, 1, 3, 0), gsSP1Triangle( 1, 4, 3, 0), gsSP1Triangle( 2, 5, 6, 0), gsSP1Triangle( 7, 8, 9, 0), gsSP1Triangle(10,11, 9, 0), gsSP1Triangle( 9, 8,12, 0), gsSP1Triangle( 7, 9,11, 0), gsSP1Triangle( 9,13,10, 0), gsSP1Triangle( 9,12,13, 0), gsSP1Triangle(12, 8,14, 0), gsSP1Triangle(14,13,12, 0), gsSP1Triangle(10,13,14, 0), gsSP1Triangle(10,14,11, 0), gsSP1Triangle(14, 8, 7, 0), gsSP1Triangle(14, 7,11, 0), gsSPVertex(&vtx_buku_B_1[15], 7, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 2, 3, 0, 0), gsSP1Triangle( 4, 2, 1, 0), gsSP1Triangle( 4, 3, 2, 0), gsSP1Triangle( 5, 0, 3, 0), gsSP1Triangle( 5, 3, 6, 0), gsSP1Triangle( 6, 3, 4, 0), gsSP1Triangle( 0, 4, 1, 0), gsSP1Triangle( 0, 6, 4, 0), gsSP1Triangle( 5, 6, 0, 0), gsSPEndDisplayList() }; static Gfx gfx_buku_B_2[] = { gs_Tani_LoadTextureImage2(puku_hair_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7), gsSPVertex(&vtx_buku_B_2[0], 6, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 1, 0, 3, 0), gsSP1Triangle( 0, 2, 4, 0), gsSP1Triangle( 3, 0, 4, 0), gsSP1Triangle( 2, 1, 5, 0), gsSP1Triangle( 2, 5, 4, 0), gsSPEndDisplayList() }; static Gfx gfx_buku_B_3[] = { gs_Tani_LoadTextureImage2(puku_skin_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7), gsSPVertex(&vtx_buku_B_3[0], 16, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 2, 3, 4, 0), gsSP1Triangle( 4, 3, 5, 0), gsSP1Triangle( 0, 4, 6, 0), gsSP1Triangle( 0, 2, 4, 0), gsSP1Triangle( 7, 3, 8, 0), gsSP1Triangle( 5, 3, 9, 0), gsSP1Triangle( 8, 3, 2, 0), gsSP1Triangle( 9, 3, 7, 0), gsSP1Triangle(10, 9,11, 0), gsSP1Triangle( 7,11, 9, 0), gsSP1Triangle(12, 1, 0, 0), gsSP1Triangle(12, 0, 6, 0), gsSP1Triangle(13,14, 1, 0), gsSP1Triangle( 2, 1,14, 0), gsSP1Triangle( 1,15,13, 0), gsSP1Triangle(14, 8, 2, 0), gsSPVertex(&vtx_buku_B_3[16], 12, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 3, 0, 4, 0), gsSP1Triangle( 1, 0, 3, 0), gsSP1Triangle( 4, 5, 6, 0), gsSP1Triangle( 3, 4, 6, 0), gsSP1Triangle( 7, 3, 8, 0), gsSP1Triangle( 3, 6, 8, 0), gsSP1Triangle( 7, 9,10, 0), gsSP1Triangle( 8, 9, 7, 0), gsSP1Triangle(10, 9,11, 0), gsSPEndDisplayList() }; static Gfx gfx_buku_B_4[] = { gsSPLight((&light_buku_B[0].l[0]),1 ), gsSPLight((&light_buku_B[0].a ),2 ), gsSPVertex(&vtx_buku_B_4[0], 13, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 3, 0, 4, 0), gsSP1Triangle( 5, 2, 1, 0), gsSP1Triangle( 1, 6, 5, 0), gsSP1Triangle( 5, 7, 2, 0), gsSP1Triangle( 8, 3, 4, 0), gsSP1Triangle( 9, 6,10, 0), gsSP1Triangle( 5, 6, 9, 0), gsSP1Triangle(11, 6, 1, 0), gsSP1Triangle( 9,10, 8, 0), gsSP1Triangle(12, 5, 9, 0), gsSP1Triangle( 7, 5,12, 0), gsSP1Triangle( 9, 8,12, 0), gsSP1Triangle( 0,11, 1, 0), gsSPLight((&light_buku_B[2].l[0]),1 ), gsSPLight((&light_buku_B[2].a ),2 ), gsSPVertex(&vtx_buku_B_4[13], 9, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 3, 4, 5, 0), gsSP1Triangle( 5, 4, 6, 0), gsSP1Triangle( 6, 4, 3, 0), gsSP1Triangle( 3, 7, 6, 0), gsSP1Triangle( 3, 8, 7, 0), gsSP1Triangle( 7, 8, 0, 0), gsSP1Triangle( 8, 1, 0, 0), gsSP1Triangle( 8, 2, 1, 0), gsSPLight((&light_buku_B[1].l[0]),1 ), gsSPLight((&light_buku_B[1].a ),2 ), gsSPVertex(&vtx_buku_B_4[22], 7, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 2, 3, 0, 0), gsSP1Triangle( 0, 4, 1, 0), gsSP1Triangle( 5, 6, 0, 0), gsSP1Triangle( 3, 5, 0, 0), gsSP1Triangle( 0, 6, 4, 0), gsSPEndDisplayList() }; Gfx gfx_buku_B[] = { 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_B_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_B_1), gsSPDisplayList(gfx_buku_B_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_B_3), gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPDisplayList(gfx_buku_B_4), gsSPEndDisplayList() };