199 lines
9.2 KiB
Plaintext
199 lines
9.2 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (monky_head)
|
|
****************************************************************************************************/
|
|
#define monky_head_AMB_SCALE 0.5
|
|
#define ShapeColor_monky_head(R,G,B) {{R*monky_head_AMB_SCALE ,G*monky_head_AMB_SCALE ,B*monky_head_AMB_SCALE ,0 ,R*monky_head_AMB_SCALE ,G*monky_head_AMB_SCALE ,B*monky_head_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_monky_head[] = {
|
|
ShapeColor_monky_head(255,255,255),
|
|
ShapeColor_monky_head(238,205,138),
|
|
};
|
|
|
|
static Vtx vtx_monky_head_0[] = {
|
|
{ 188, -23, 43, 0, -1000, 918, 111, -35, 50, 255},
|
|
{ 178, 68, 52, 0, -832, 1062, 92, 44, 74, 255},
|
|
{ 137, 14, 87, 0, -124, 1652, 69, 46, 95, 255},
|
|
{ 178, 68, -51, 0, -2900, 1062, 104, 48, -53, 255},
|
|
{ 116, 50, 83, 0, -200, 1954, 22, 43, 117, 255},
|
|
{ 39, 19, 92, 0, 0, 3042, -68, 56, 91, 255},
|
|
{ 104, -40, 87, 0, -124, 2114, 44, -88, 79, 255},
|
|
{ 116, 50, -82, 0, -3532, 1954, 22, 43, -117, 255},
|
|
{ 137, 14, -86, 0, -3612, 1652, 62, 66, -88, 255},
|
|
{ 188, -23, -42, 0, -2732, 918, 100, -34, -69, 255},
|
|
{ 144, -81, -42, 0, -2732, 1554, 42, -109, -48, 255},
|
|
{ 104, -40, -86, 0, -3612, 2114, 44, -88, -79, 255},
|
|
{ 39, 19, -91, 0, -3704, 3042, -74, 41, -94, 255},
|
|
{ 0, -40, -52, 0, -2928, 3600, -111, -45, -40, 255},
|
|
{ 39, -79, 0, 0, -1868, 3042, -34, -122, 0, 255},
|
|
{ 0, -40, 53, 0, -808, 3600, -100, -48, 60, 255},
|
|
{ 46, -22, -91, 0, -3704, 2950, -68, -79, -70, 255},
|
|
{ 104, -40, -86, 0, -3612, 2114, 44, -88, -79, 255},
|
|
{ 144, -81, -42, 0, -2732, 1554, 42, -109, -48, 255},
|
|
{ 104, -40, 87, 0, -124, 2114, 44, -88, 79, 255},
|
|
{ 144, -81, 43, 0, -1000, 1554, 25, -110, 57, 255},
|
|
{ 188, -23, 43, 0, -1000, 918, 111, -35, 50, 255},
|
|
{ 46, -22, 92, 0, 0, 2950, -56, -89, 69, 255},
|
|
{ 39, -79, 0, 0, -1868, 3042, -34, -122, 0, 255},
|
|
{ 0, 79, -32, 0, -2536, 3600, -109, 37, -51, 255},
|
|
{ 39, 19, -91, 0, -3704, 3042, -74, 41, -94, 255},
|
|
{ 0, -40, -52, 0, -2928, 3600, -111, -45, -40, 255},
|
|
{ 39, 19, 92, 0, 0, 3042, -68, 56, 91, 255},
|
|
{ 0, -40, 53, 0, -808, 3600, -100, -48, 60, 255},
|
|
{ 0, -40, -52, 0, -2852, 3826, -111, -45, -40, 255},
|
|
{ 0, -40, 53, 0, -920, 3826, -100, -48, 60, 255},
|
|
{ 0, 79, 33, 0, -1280, 3826, -114, 40, 38, 255},
|
|
{ 116, 50, -82, 0, 64, 174, 22, 43, -117, 255},
|
|
{ 139, 115, -40, 0, 540, -8, 38, 104, -61, 255},
|
|
{ 178, 68, -51, 0, 416, -306, 104, 48, -53, 255},
|
|
{ 139, 115, 41, 0, 1440, -8, 51, 103, 51, 255},
|
|
{ 178, 68, 52, 0, 1564, -306, 92, 44, 74, 255},
|
|
{ 116, 50, 83, 0, 1916, 174, 22, 43, 117, 255},
|
|
{ 39, 19, 92, 0, -220, 3044, -68, 56, 91, 255},
|
|
{ 0, 79, 33, 0, -1280, 3826, -114, 40, 38, 255},
|
|
{ 0, -40, 53, 0, -920, 3826, -100, -48, 60, 255},
|
|
{ 0, -40, -52, 0, -2852, 3826, -111, -45, -40, 255},
|
|
{ 0, 79, -32, 0, -2492, 3826, -109, 37, -51, 255},
|
|
{ 0, 79, 33, 0, 1360, 1058, -114, 40, 38, 255},
|
|
{ 43, 100, 68, 0, 1744, 734, -34, 78, 93, 255},
|
|
{ 40, 126, 0, 0, 992, 754, -46, 118, 0, 255},
|
|
{ 0, 79, -32, 0, 620, 1058, -109, 37, -51, 255},
|
|
{ 39, 19, 92, 0, 2008, 760, -68, 56, 91, 255},
|
|
{ 43, 100, -67, 0, 236, 734, -34, 78, -93, 255},
|
|
{ 40, 126, 0, 0, 992, 754, -46, 118, 0, 255},
|
|
{ 139, 115, -40, 0, 540, -8, 38, 104, -61, 255},
|
|
{ 0, 79, -32, 0, 620, 1058, -109, 37, -51, 255},
|
|
{ 139, 115, 41, 0, 1440, -8, 51, 103, 51, 255},
|
|
{ 39, 19, -91, 0, -28, 760, -74, 41, -94, 255},
|
|
{ 116, 50, -82, 0, 64, 174, 22, 43, -117, 255},
|
|
};
|
|
|
|
static Vtx vtx_monky_head_1[] = {
|
|
{ 89, 14, -164, 0, 0, 0, -13, -22, -124, 255},
|
|
{ 143, 14, -129, 0, 0, 0, 116, -23, -43, 255},
|
|
{ 104, -40, -86, 0, 0, 0, 44, -88, -79, 255},
|
|
{ 137, 14, -86, 0, 0, 0, 62, 66, -88, 255},
|
|
{ 46, -22, -91, 0, 0, 0, -68, -79, -70, 255},
|
|
{ 39, 19, -91, 0, 0, 0, -74, 41, -94, 255},
|
|
{ 34, 14, -131, 0, 0, 0, -91, 78, -40, 255},
|
|
{ 46, -22, 92, 0, 0, 0, -56, -89, 69, 255},
|
|
{ 34, 14, 132, 0, 0, 0, -118, 6, 46, 255},
|
|
{ 39, 19, 92, 0, 0, 0, -68, 56, 91, 255},
|
|
{ 89, 14, 165, 0, 0, 0, -12, 44, 118, 255},
|
|
{ 104, -40, 87, 0, 0, 0, 44, -88, 79, 255},
|
|
{ 137, 14, 87, 0, 0, 0, 69, 46, 95, 255},
|
|
{ 143, 14, 130, 0, 0, 0, 116, -23, 43, 255},
|
|
};
|
|
|
|
static Gfx gfx_monky_head_0[] = {
|
|
gsSPLight((&light_monky_head[0].l[0]),1 ),
|
|
gsSPLight((&light_monky_head[0].a ),2 ),
|
|
gsSPVertex(&vtx_monky_head_0[0], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 1, 0, 0),
|
|
gsSP1Triangle( 1, 4, 2, 0),
|
|
gsSP1Triangle( 5, 2, 4, 0),
|
|
gsSP1Triangle( 2, 6, 0, 0),
|
|
gsSP1Triangle( 7, 3, 8, 0),
|
|
gsSP1Triangle( 3, 0, 9, 0),
|
|
gsSP1Triangle( 3, 9, 8, 0),
|
|
gsSP1Triangle( 9,10,11, 0),
|
|
gsSP1Triangle( 9,11, 8, 0),
|
|
gsSP1Triangle( 0,10, 9, 0),
|
|
gsSP1Triangle(12, 7, 8, 0),
|
|
gsSP1Triangle(13,14,15, 0),
|
|
gsSPVertex(&vtx_monky_head_0[16], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 4, 3, 0),
|
|
gsSP1Triangle( 5, 4, 2, 0),
|
|
gsSP1Triangle( 2, 7, 0, 0),
|
|
gsSP1Triangle( 0, 8, 9, 0),
|
|
gsSP1Triangle( 0,10, 8, 0),
|
|
gsSP1Triangle( 0, 7,10, 0),
|
|
gsSP1Triangle( 7, 2, 4, 0),
|
|
gsSP1Triangle(11,12, 6, 0),
|
|
gsSP1Triangle( 7, 6,12, 0),
|
|
gsSP1Triangle( 6, 7, 4, 0),
|
|
gsSP1Triangle(13,14,15, 0),
|
|
gsSPVertex(&vtx_monky_head_0[32], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 1, 3, 0),
|
|
gsSP1Triangle( 2, 3, 4, 0),
|
|
gsSP1Triangle( 4, 3, 5, 0),
|
|
gsSP1Triangle( 6, 7, 8, 0),
|
|
gsSP1Triangle( 9, 7,10, 0),
|
|
gsSP1Triangle(11,12,13, 0),
|
|
gsSP1Triangle(14,11,13, 0),
|
|
gsSP1Triangle(15,12,11, 0),
|
|
gsSP1Triangle(13,12, 3, 0),
|
|
gsSP1Triangle( 5, 3,12, 0),
|
|
gsSP1Triangle(12,15, 5, 0),
|
|
gsSPVertex(&vtx_monky_head_0[48], 7, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 1, 0, 3, 0),
|
|
gsSP1Triangle( 1, 4, 2, 0),
|
|
gsSP1Triangle( 0, 5, 3, 0),
|
|
gsSP1Triangle( 5, 0, 6, 0),
|
|
gsSP1Triangle( 0, 2, 6, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_monky_head_1[] = {
|
|
gsSPLight((&light_monky_head[1].l[0]),1 ),
|
|
gsSPLight((&light_monky_head[1].a ),2 ),
|
|
gsSPVertex(&vtx_monky_head_1[0], 14, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 1, 3, 0),
|
|
gsSP1Triangle( 2, 4, 0, 0),
|
|
gsSP1Triangle( 5, 6, 4, 0),
|
|
gsSP1Triangle( 0, 4, 6, 0),
|
|
gsSP1Triangle( 3, 1, 0, 0),
|
|
gsSP1Triangle( 3, 0, 6, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle(10, 8, 7, 0),
|
|
gsSP1Triangle( 7,11,10, 0),
|
|
gsSP1Triangle(12,13,11, 0),
|
|
gsSP1Triangle(11,13,10, 0),
|
|
gsSP1Triangle(10,12, 9, 0),
|
|
gsSP1Triangle(10,13,12, 0),
|
|
gsSP1Triangle(10, 9, 8, 0),
|
|
gsSP1Triangle( 3, 6, 5, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_monky_head_init[] = {
|
|
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, 64, 32, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_monky_head_reset[] = {
|
|
gsSPDisplayList(gfx_monky_head_0),
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPDisplayList(gfx_monky_head_1),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
|
|
/* -------------------------------------------------------------------------------------------- */
|
|
/* -------------------------------------------------------------------------------------------- */
|
|
|
|
|
|
Gfx gfx_monky_head1[] = {
|
|
gsSPDisplayList(gfx_monky_head_init),
|
|
gs_Tani_LoadTextureImage2(monky_face_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPBranchList(gfx_monky_head_reset)
|
|
};
|
|
|
|
Gfx gfx_monky_head2[] = {
|
|
gsSPDisplayList(gfx_monky_head_init),
|
|
gs_Tani_LoadTextureImage2(monky_face2_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPBranchList(gfx_monky_head_reset)
|
|
};
|
|
|