sm64/shape/enemy1_f/indy/indy_head_shape.sou
2022-12-04 22:27:02 -05:00

203 lines
9.1 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (indy_head)
****************************************************************************************************/
#define indy_head_AMB_SCALE 0.5
#define ShapeColor_indy_head(R,G,B) {{R*indy_head_AMB_SCALE ,G*indy_head_AMB_SCALE ,B*indy_head_AMB_SCALE ,0 ,R*indy_head_AMB_SCALE ,G*indy_head_AMB_SCALE ,B*indy_head_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_indy_head[] = {
ShapeColor_indy_head(255,255,255),
};
static Vtx vtx_indy_head_0[] = {
{ 48, 140, 0, 0, 474, 386, 27, 124, 0, 255},
{ 57, 101, 0, 0, 472, 156, 94, 84, 0, 255},
{ 34, 99, -34, 0, 96, 420, 35, 86, -86, 255},
{ 2, 111, 11, 0, 600, 742, -55, 101, 52, 255},
{ 2, 111, -10, 0, 352, 764, -65, 99, -44, 255},
{ 34, 99, 35, 0, 852, 352, 35, 86, 85, 255},
};
static Vtx vtx_indy_head_1[] = {
{ 34, 99, -34, 0, 404, 956, 35, 86, -86, 255},
{ 57, 101, 0, 0, -182, 680, 94, 84, 0, 255},
{ 100, 66, -27, 0, 244, -20, 83, 82, -48, 255},
{ 63, 34, -76, 0, 1210, 238, 60, 31, -106, 255},
{ 34, 99, 35, 0, 334, 944, 35, 86, 85, 255},
{ 63, 34, 77, 0, 1304, 266, 60, 44, 102, 255},
{ 100, 66, 28, 0, 306, 26, 90, 78, 40, 255},
{ 57, 101, 0, 0, -212, 636, 94, 84, 0, 255},
{ 100, 66, 28, 0, 288, 356, 90, 78, 40, 255},
{ 100, 66, -27, 0, 176, 356, 83, 82, -48, 255},
{ 57, 101, 0, 0, 206, 400, 94, 84, 0, 255},
{ 118, 28, -28, 0, 204, 308, 119, 27, -33, 255},
{ 118, 28, 29, 0, 318, 308, 109, 23, 59, 255},
{ 63, 34, 77, 0, 408, 316, 60, 44, 102, 255},
{ 63, 34, -76, 0, 102, 316, 60, 31, -106, 255},
{ 118, -22, 29, 0, 356, 246, 113, -49, 27, 255},
{ 118, 28, -28, 0, 204, 308, 119, 27, -33, 255},
{ 118, -22, 29, 0, 356, 246, 113, -49, 27, 255},
{ 118, -22, -28, 0, 240, 246, 107, -36, -56, 255},
{ 63, 34, -76, 0, 102, 316, 60, 31, -106, 255},
{ 71, -36, 77, 0, 462, 228, 62, -30, 106, 255},
{ 118, 28, 29, 0, 318, 308, 109, 23, 59, 255},
{ 63, 34, 77, 0, 408, 316, 60, 44, 102, 255},
{ -4, -80, 47, 0, 434, 174, -42, -115, 30, 255},
{ -7, -37, 94, 0, 496, 228, -27, -63, 106, 255},
{ -35, -41, 55, 0, 422, 222, -111, -33, 50, 255},
{ 0, 44, 94, 0, 436, 330, -25, 48, 114, 255},
{ 69, -67, 40, 0, 412, 190, 51, -105, 48, 255},
{ -7, -37, -93, 0, 122, 228, -39, -33, -115, 255},
{ 0, 44, -93, 0, 60, 330, -16, 64, -108, 255},
{ 69, -67, -39, 0, 252, 190, 58, -109, -24, 255},
{ -4, -80, -46, 0, 248, 174, -26, -111, -54, 255},
{ -35, -41, -54, 0, 202, 222, -116, -43, -25, 255},
{ -4, -80, -46, 0, 248, 174, -26, -111, -54, 255},
{ -4, -80, 47, 0, 434, 174, -42, -115, 30, 255},
{ -35, -41, 55, 0, 422, 222, -111, -33, 50, 255},
{ 118, -22, 29, 0, 356, 246, 113, -49, 27, 255},
{ 69, -67, -39, 0, 252, 190, 58, -109, -24, 255},
{ 118, -22, -28, 0, 240, 246, 107, -36, -56, 255},
{ 71, -36, -76, 0, 156, 228, 55, -56, -99, 255},
{ 63, 34, -76, 0, 102, 316, 60, 31, -106, 255},
{ -7, -37, -93, 0, 122, 228, -39, -33, -115, 255},
};
static Vtx vtx_indy_head_2[] = {
{ 2, 111, -10, 0, 898, 558, -65, 99, -44, 255},
{ 0, 44, -93, 0, -8, 556, -16, 64, -108, 255},
{ -36, 61, -57, 0, 302, 130, -105, 41, -56, 255},
{ 34, 99, -34, 0, 696, 928, 35, 86, -86, 255},
{ 0, 44, 94, 0, 940, 652, -25, 48, 114, 255},
{ 2, 111, 11, 0, 110, 590, -55, 101, 52, 255},
{ -36, 61, 58, 0, 714, 246, -113, 47, 32, 255},
{ 34, 99, 35, 0, 244, 938, 35, 86, 85, 255},
{ 63, 34, 77, 0, 764, 1264, 60, 44, 102, 255},
{ 63, 34, -76, 0, 82, 1240, 60, 31, -106, 255},
{ -7, -37, -93, 0, 60, 1826, -39, -33, -115, 255},
{ -35, -41, -54, 0, 244, 1890, -116, -43, -25, 255},
{ -36, 61, -57, 0, 186, 412, -105, 41, -56, 255},
{ 0, 44, -93, 0, 20, 646, -16, 64, -108, 255},
{ -36, 61, 58, 0, 742, 440, -113, 47, 32, 255},
{ -35, -41, 55, 0, 772, 1916, -111, -33, 50, 255},
{ 0, 44, 94, 0, 922, 692, -25, 48, 114, 255},
{ -35, -41, 55, 0, 772, 1916, -111, -33, 50, 255},
{ -7, -37, 94, 0, 952, 1870, -27, -63, 106, 255},
{ -36, 61, 58, 0, 742, 440, -113, 47, 32, 255},
};
static Vtx vtx_indy_head_3[] = {
{ -36, 61, 58, 0, 0, 0, -113, 47, 32, 255},
{ 2, 111, 11, 0, 0, 0, -55, 101, 52, 255},
{ 2, 111, -10, 0, 0, 0, -65, 99, -44, 255},
{ -36, 61, -57, 0, 0, 0, -105, 41, -56, 255},
};
static Gfx gfx_indy_head_0[] = {
gs_Tani_LoadTextureImage2(indy_nose_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPLight((&light_indy_head[0].l[0]),1 ),
gsSPLight((&light_indy_head[0].a ),2 ),
gsSPVertex(&vtx_indy_head_0[0], 6, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 0, 4, 0),
gsSP1Triangle( 0, 3, 5, 0),
gsSP1Triangle( 5, 1, 0, 0),
gsSP1Triangle( 2, 4, 0, 0),
gsSPEndDisplayList()
};
static Gfx gfx_indy_head_1[] = {
gs_Tani_LoadTextureImage2(indy_eye_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPVertex(&vtx_indy_head_1[0], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 2, 3, 0, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 6, 7, 4, 0),
gsSP1Triangle( 8, 9,10, 0),
gsSP1Triangle(11, 8,12, 0),
gsSP1Triangle(12, 8,13, 0),
gsSP1Triangle(11, 9, 8, 0),
gsSP1Triangle(14, 9,11, 0),
gsSP1Triangle(11,12,15, 0),
gsSPVertex(&vtx_indy_head_1[16], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 0, 2, 0),
gsSP1Triangle( 4, 1, 5, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 7, 8, 9, 0),
gsSP1Triangle(10, 8, 4, 0),
gsSP1Triangle( 8, 7,11, 0),
gsSP1Triangle( 8,11, 4, 0),
gsSP1Triangle( 4,11, 1, 0),
gsSP1Triangle(10, 4, 6, 0),
gsSP1Triangle(12,13, 3, 0),
gsSP1Triangle( 7,14,11, 0),
gsSP1Triangle( 1,11,14, 0),
gsSP1Triangle( 7,15,14, 0),
gsSPVertex(&vtx_indy_head_1[32], 10, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 0, 2, 3, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 6, 5, 7, 0),
gsSP1Triangle( 7, 5, 1, 0),
gsSP1Triangle( 8, 6, 7, 0),
gsSP1Triangle( 9, 8, 7, 0),
gsSP1Triangle( 7, 1, 9, 0),
gsSP1Triangle( 9, 1, 0, 0),
gsSPEndDisplayList()
};
static Gfx gfx_indy_head_2[] = {
gs_Tani_LoadTextureImage2(indy_bodyskin_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPVertex(&vtx_indy_head_2[0], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 1, 0, 3, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 7, 5, 4, 0),
gsSP1Triangle( 4, 8, 7, 0),
gsSP1Triangle( 3, 9, 1, 0),
gsSP1Triangle(10,11,12, 0),
gsSP1Triangle(10,12,13, 0),
gsSP1Triangle(11,14,12, 0),
gsSP1Triangle(11,15,14, 0),
gsSPVertex(&vtx_indy_head_2[16], 4, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 0, 3, 1, 0),
gsSPEndDisplayList()
};
static Gfx gfx_indy_head_3[] = {
gsSPVertex(&vtx_indy_head_3[0], 4, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 0, 2, 3, 0),
gsSPEndDisplayList()
};
Gfx gfx_indy_head[] = {
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, 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_indy_head_0),
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsSPDisplayList(gfx_indy_head_1),
gsSPDisplayList(gfx_indy_head_2),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPDisplayList(gfx_indy_head_3),
gsSPEndDisplayList()
};