By default, KOS doesn't initialize any buffer space for the Punchthru list -- only the opaque and translucent lists are initialized by default.. You have to actually tell KOS to set up the punchthru list before you can use it.epicasian wrote:I'm currently trying to try to display a punchthrough image and am getting strange runtime errors. I change everything you told me to, BlueCrab but I still don't know what is going wrong. If and when you have time, could you look at my source and tell me what's wrong?
Here is the image:
http://i203.photobucket.com/albums/aa16 ... 1288145963
And here is the code:
http://pastebin.com/zAg7GR5k
Generally for doing that, you'd see something like this right above the romdisk init (outside of the main function):
Code: Select all
static pvr_init_params_t pvr_params = {
/* Enable Opaque, Translucent, and Punchthru lists */
{ PVR_BINSIZE_16, PVR_BINSIZE_0, PVR_BINSIZE_16, PVR_BINSIZE_0,
PVR_BINSIZE_16 },
512 * 1024, /* 512 KB of vertex buffer space */
0, /* Vertex DMA disabled */
0 /* "FSAA" off */
};
Code: Select all
pvr_init(&pvr_params);