Hi there, I've been trying to incorporate colored lightmap support into Kurok, however I've been running into a strange issue. I've asked for help at ps2dev forums but didn't get much luck in responses
The problem is to do with memory allocation. The code looks all ok to me, but if I have lightmap bytes go over a certain amount, I get no sounds playing and if I allocate more, I get a black screen on startup. I need to allocate about 4MB of lightmap bytes, which is a huge amount I know, but its specifically for the slim psp so it should be ok.
Here is the code in question:
NOTE: Ignore the comments at the top of video_hardware_surface.cp p, thats what I was getting with an old version of my toolchain. I can set more now, but I get the above mentioned issues like no sound and eventual black screen.
Here is my results so far though!
Please help me! Thanks.
EDIT: I've developed a work around for now, I can't really use 4MB of lightmap data for phat psp's anyway, so I've reduced the amount of total lightmap surfaces that can be shown at any one time. Most maps are fine, but some of the larger quake 1 maps show a few glitches because of it. Defaulting to normal black and white lightmaps for quake should be fine for now though. Just have to be careful with Kurok's maps.