138 lines
6.1 KiB
Plaintext
138 lines
6.1 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (j_body)
|
|
****************************************************************************************************/
|
|
#define J_BODY_AMB_SCALE 0.5
|
|
#define ShapeColor_j_body(R,G,B) {{R*J_BODY_AMB_SCALE ,G*J_BODY_AMB_SCALE ,B*J_BODY_AMB_SCALE ,0 ,R*J_BODY_AMB_SCALE ,G*J_BODY_AMB_SCALE ,B*J_BODY_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_j_body[] = {
|
|
ShapeColor_j_body(255,255,255),
|
|
ShapeColor_j_body(242,171, 0),
|
|
};
|
|
|
|
static Vtx vtx_j_body_0[] = {
|
|
{ 36*2.55, -10*2.55, 34*2.55, 0, 240, 464, 62, -48, 99, 255},
|
|
{ 52*2.55, -7*2.55, 17*2.55, 0, 34, 468, 113, -50, 26, 255},
|
|
{ 54*2.55, 14*2.55, 17*2.55, 0, 0, 980, 100, 51, 57, 255},
|
|
{ -1*2.55, 6*2.55, -38*2.55, 0, 684, 990, -42, 51, -108, 255},
|
|
{ 33*2.55, 11*2.55, -38*2.55, 0, 242, 984, 54, 42, -106, 255},
|
|
{ 36*2.55, -9*2.55, -32*2.55, 0, 240, 474, 36, -62, -104, 255},
|
|
{ 54*2.55, 14*2.55, -16*2.55, 0, 0, 980, 102, 69, -29, 255},
|
|
{ 52*2.55, -7*2.55, -16*2.55, 0, 34, 468, 106, -42, -53, 255},
|
|
{ 33*2.55, -30*2.55, -11*2.55, 0, 310, -14, 58, -108, -28, 255},
|
|
{ 9*2.55, -33*2.55, -11*2.55, 0, 612, -10, -21, -113, -53, 255},
|
|
{ 1*2.55, -14*2.55, -32*2.55, 0, 684, 480, -47, -65, -97, 255},
|
|
{ 9*2.55, -33*2.55, 12*2.55, 0, 612, -10, -32, -119, 27, 255},
|
|
{ 33*2.55, -30*2.55, 12*2.55, 0, 310, -14, 48, -105, 51, 255},
|
|
{ 1*2.55, -14*2.55, 34*2.55, 0, 684, 470, -22, -69, 103, 255},
|
|
{ 33*2.55, 11*2.55, 39*2.55, 0, 242, 984, 31, 40, 116, 255},
|
|
{ -1*2.55, 6*2.55, 39*2.55, 0, 684, 990, -63, 52, 96, 255},
|
|
{ -1*2.55, 6*2.55, 39*2.55, 0, 684, 990, -63, 52, 96, 255},
|
|
{ -22*2.55, 3*2.55, 17*2.55, 0, 958, 992, -121, 16, 33, 255},
|
|
{ -13*2.55, -16*2.55, 17*2.55, 0, 884, 484, -93, -69, 49, 255},
|
|
{ 1*2.55, -14*2.55, 34*2.55, 0, 684, 470, -22, -69, 103, 255},
|
|
{ 9*2.55, -33*2.55, 12*2.55, 0, 612, -10, -32, -119, 27, 255},
|
|
{ -13*2.55, -16*2.55, -16*2.55, 0, 884, 484, -95, -79, -25, 255},
|
|
{ -22*2.55, 3*2.55, -16*2.55, 0, 958, 992, -112, 20, -55, 255},
|
|
{ 9*2.55, -33*2.55, -11*2.55, 0, 612, -10, -21, -113, -53, 255},
|
|
{ 1*2.55, -14*2.55, -32*2.55, 0, 684, 480, -47, -65, -97, 255},
|
|
{ -1*2.55, 6*2.55, -38*2.55, 0, 684, 990, -42, 51, -108, 255},
|
|
};
|
|
|
|
static Vtx vtx_j_body_1[] = {
|
|
{ 0*2.55, 20*2.55, 0*2.55, 0, 0, 0, -49, 117, 0, 255},
|
|
{ 27*2.55, 24*2.55, 14*2.55, 0, 0, 0, 9, 123, 26, 255},
|
|
{ 27*2.55, 24*2.55, -13*2.55, 0, 0, 0, 1, 122, -32, 255},
|
|
{ 33*2.55, 11*2.55, -38*2.55, 0, 0, 0, 54, 42, -106, 255},
|
|
{ -1*2.55, 6*2.55, -38*2.55, 0, 0, 0, -42, 51, -108, 255},
|
|
{ 54*2.55, 14*2.55, -16*2.55, 0, 0, 0, 102, 69, -29, 255},
|
|
{ -22*2.55, 3*2.55, -16*2.55, 0, 0, 0, -112, 20, -55, 255},
|
|
{ -1*2.55, 6*2.55, 39*2.55, 0, 0, 0, -63, 52, 96, 255},
|
|
{ 33*2.55, 11*2.55, 39*2.55, 0, 0, 0, 31, 40, 116, 255},
|
|
{ -22*2.55, 3*2.55, 17*2.55, 0, 0, 0, -121, 16, 33, 255},
|
|
{ 54*2.55, 14*2.55, 17*2.55, 0, 0, 0, 100, 51, 57, 255},
|
|
};
|
|
|
|
static Gfx gfx_j_body_0[] = {
|
|
gs_Tani_LoadTextureImage2(jyu_koura_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_j_body[0].l[0]),1 ),
|
|
gsSPLight((&light_j_body[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_j_body_0[0], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 4, 6, 7, 0),
|
|
gsSP1Triangle( 4, 7, 5, 0),
|
|
gsSP1Triangle( 5, 7, 8, 0),
|
|
gsSP1Triangle( 8, 7, 1, 0),
|
|
gsSP1Triangle( 6, 1, 7, 0),
|
|
gsSP1Triangle( 5, 8, 9, 0),
|
|
gsSP1Triangle( 5, 9,10, 0),
|
|
gsSP1Triangle( 3, 5,10, 0),
|
|
gsSP1Triangle( 6, 2, 1, 0),
|
|
gsSP1Triangle( 8,11, 9, 0),
|
|
gsSP1Triangle( 8,12,11, 0),
|
|
gsSP1Triangle( 8, 1,12, 0),
|
|
gsSP1Triangle(12, 1, 0, 0),
|
|
gsSP1Triangle(13,11,12, 0),
|
|
gsSP1Triangle(13,12, 0, 0),
|
|
gsSP1Triangle(14,13, 0, 0),
|
|
gsSP1Triangle( 0, 2,14, 0),
|
|
gsSP1Triangle(14,15,13, 0),
|
|
gsSPVertex(&vtx_j_body_0[16], 10, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSP1Triangle( 3, 2, 4, 0),
|
|
gsSP1Triangle( 4, 2, 5, 0),
|
|
gsSP1Triangle( 1, 5, 2, 0),
|
|
gsSP1Triangle( 1, 6, 5, 0),
|
|
gsSP1Triangle( 4, 5, 7, 0),
|
|
gsSP1Triangle( 7, 5, 8, 0),
|
|
gsSP1Triangle( 8, 5, 6, 0),
|
|
gsSP1Triangle( 8, 6, 9, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_j_body_1[] = {
|
|
|
|
gsSPLight((&light_j_body[1].l[0]),1 ),
|
|
gsSPLight((&light_j_body[1].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_j_body_1[0], 11, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 3, 4, 0),
|
|
gsSP1Triangle( 1, 5, 2, 0),
|
|
gsSP1Triangle( 4, 0, 2, 0),
|
|
gsSP1Triangle( 5, 3, 2, 0),
|
|
gsSP1Triangle( 4, 6, 0, 0),
|
|
gsSP1Triangle( 7, 8, 1, 0),
|
|
gsSP1Triangle( 9, 7, 0, 0),
|
|
gsSP1Triangle( 1, 0, 7, 0),
|
|
gsSP1Triangle( 8,10, 1, 0),
|
|
gsSP1Triangle( 1,10, 5, 0),
|
|
gsSP1Triangle( 0, 6, 9, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_j2_body[] = {
|
|
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_j_body_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
|
|
gsSPDisplayList(gfx_j_body_1),
|
|
|
|
gsSPEndDisplayList()
|
|
};
|
|
|