michael-fadely / sadx-dc-lighting

Sonic Adventure 1 palette lighting for SADX PC.
MIT License
39 stars 3 forks source link

Gamma's Froggy Hunt cutscene #51

Closed PiKeyAr closed 6 years ago

PiKeyAr commented 7 years ago

It looks like SA1 has a lighting change in the cutscene where Eggman talks to the Egg Carrier crew. dafmv6fu0aa1w-2 Unless there is some magic involving SL files, I think the base palette is being temporarily overwritten with dark gray until the moment the lights turn on, or the base palette's brightness is lowered.

Recreating this effect will also help #26.

PiKeyAr commented 7 years ago

Here's a savegame that starts Gamma's story right on the cutscene.

PiKeyAr commented 6 years ago

I implemented it in DC_EggCarrier using the following:

sub_6F4577 loads an object (ObjectMaster at dword_3C85138) that is supposed to turn off the lights. sub_6F4620 destroys that object right before Eggman starts speaking.

I loaded a modified PL file that has a grey diffuse palette (FF646464) and hooked the above functions to blend into this palette when the lights are off, and disable blending when the lights turn on.