mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
663e4549d8
* Proof of concept for loading rom assets at runtime * Added skybox textures * Adjusted format * Load all texture assets from rom * Adjusted rom asset loading * Load all Vtx lists from rom * clean up toad, wario and his cap conflicts * Load sound samples from rom * fix toad sounds * Loaded sequences from rom * Load collisions from rom * Object animations are now loaded from the rom * Load player animations from rom * Load goddard anims from rom * whoops * fix some compile errors * drag and drop rom checker, everything works now. * fix errors due to merge conflicts * fix compile errors on windows, switch to md5 * fix vertex colors during load Co-Authored-By: Agent X <44549182+agent-11@users.noreply.github.com> * Load dialogs from rom * Loaded course/act names from rom * Loaded ingame text from rom * rerun autogen & blacklist smlua_text_utils_init * fix ttc_seg7_vertex_0700B238 colors --------- Co-authored-by: MysterD <myster@d> Co-authored-by: Agent X <44549182+agent-11@users.noreply.github.com>
107 lines
5.1 KiB
C
107 lines
5.1 KiB
C
#include "pc/rom_assets.h"
|
|
// Impact Smoke
|
|
|
|
// TODO: These 64x64 textures are referenced as two different texture addresses in the DLs
|
|
|
|
// 0x0605AA28
|
|
ROM_ASSET_LOAD_TEXTURE(impact_smoke_seg6_texture_0605AA28, "actors/impact_smoke/impact_smoke_0.ia16.inc.c", 0x00188440, 199722, 0x0005ab78, 8192);
|
|
|
|
// 0x0605CA28
|
|
ROM_ASSET_LOAD_TEXTURE(impact_smoke_seg6_texture_0605CA28, "actors/impact_smoke/impact_smoke_1.ia16.inc.c", 0x00188440, 199722, 0x0005cb78, 8192);
|
|
|
|
// 0x0605EA28
|
|
ROM_ASSET_LOAD_TEXTURE(impact_smoke_seg6_texture_0605EA28, "actors/impact_smoke/impact_smoke_2.ia16.inc.c", 0x00188440, 199722, 0x0005eb78, 8192);
|
|
|
|
// 0x06060A28
|
|
ROM_ASSET_LOAD_TEXTURE(impact_smoke_seg6_texture_06060A28, "actors/impact_smoke/impact_smoke_3.ia16.inc.c", 0x00188440, 199722, 0x00060b78, 8192);
|
|
|
|
// 0x06062A28
|
|
static const Vtx impact_smoke_seg6_vertex_06062A28[] = {
|
|
{{{ -150, 150, 0}, 0, { 0, 992}, {0x28, 0x19, 0x14, 0xff}}},
|
|
{{{ 150, 150, 0}, 0, { 2016, 992}, {0x28, 0x19, 0x14, 0xff}}},
|
|
{{{ 150, 300, 0}, 0, { 2016, 0}, {0x28, 0x19, 0x14, 0xff}}},
|
|
{{{ -150, 300, 0}, 0, { 0, 0}, {0x28, 0x19, 0x14, 0xff}}},
|
|
{{{ -150, 0, 0}, 0, { 0, 2016}, {0x28, 0x19, 0x14, 0xff}}},
|
|
{{{ 150, 0, 0}, 0, { 2016, 2016}, {0x28, 0x19, 0x14, 0xff}}},
|
|
{{{ 150, 150, 0}, 0, { 2016, 992}, {0x28, 0x19, 0x14, 0xff}}},
|
|
{{{ -150, 150, 0}, 0, { 0, 992}, {0x28, 0x19, 0x14, 0xff}}},
|
|
};
|
|
|
|
// 0x06062AA8 - 0x06062AD8
|
|
const Gfx impact_smoke_seg6_dl_06062AA8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATEFADE, G_CC_MODULATEFADE),
|
|
gsSPGeometryMode(G_LIGHTING, G_SHADING_SMOOTH),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06062AD8 - 0x06062AF0
|
|
const Gfx impact_smoke_seg6_dl_06062AD8[] = {
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06062AF0 - 0x06062B08
|
|
const Gfx impact_smoke_seg6_dl_06062AF0[] = {
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06062B08 - 0x06062B38
|
|
const Gfx impact_smoke_seg6_dl_06062B08[] = {
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsDPSetEnvColor(255, 255, 255, 255),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06062B38 - 0x06062BD8
|
|
const Gfx impact_smoke_seg6_dl_06062B38[] = {
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AA8),
|
|
gsDPLoadTextureBlock(impact_smoke_seg6_texture_0605AA28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 64, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 6, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
|
//gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_0605AA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06062BD8 - 0x06062C78
|
|
const Gfx impact_smoke_seg6_dl_06062BD8[] = {
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AA8),
|
|
gsDPLoadTextureBlock(impact_smoke_seg6_texture_0605CA28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 64, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 6, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
|
//gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_0605CA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06062C78 - 0x06062D18
|
|
const Gfx impact_smoke_seg6_dl_06062C78[] = {
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AA8),
|
|
gsDPLoadTextureBlock(impact_smoke_seg6_texture_0605EA28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 64, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 6, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
|
//gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_0605EA28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06062D18 - 0x06062DB8
|
|
const Gfx impact_smoke_seg6_dl_06062D18[] = {
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AA8),
|
|
gsDPLoadTextureBlock(impact_smoke_seg6_texture_06060A28, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 64, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 6, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPVertex(impact_smoke_seg6_vertex_06062A28, 8, 0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AD8),
|
|
//gsDPLoadTextureBlock((u8*)impact_smoke_seg6_texture_06060A28 + 0x1000, G_IM_FMT_IA, G_IM_SIZ_16b, 64, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062AF0),
|
|
gsSPDisplayList(impact_smoke_seg6_dl_06062B08),
|
|
gsSPEndDisplayList(),
|
|
};
|