Page 1 of 2

Tilegen background colour

PostPosted: Sat Oct 02, 2021 3:29 pm
by Ian
I noticed in a few games especially at start the background colour is the inverse of what the actual hw is showing, ie white instead of black. Sometimes for only short periods.

Charles McDonald's write up of the tilegen says this:

If the bottommost layer is blanked, it is filled with color 0 of palette 0.

I assume this can be some colour other than zero? Or black. Maybe the issue is here

Re: Tilegen background colour

PostPosted: Sun Oct 03, 2021 5:24 am
by Ian
Screenshot of what I mean, this is from harley

Re: Tilegen background colour

PostPosted: Thu Oct 14, 2021 8:36 am
by Jiterdomer
LA Machineguns also during the Valley of Fire briefing screen. In the emulator itself, it just shows the screen fading in much like the Wii version, whereas the original HW flashes white after the flashing "SCRAMBLE" text screen.
https://youtu.be/pyy4nOqaM9M

Re: Tilegen background colour

PostPosted: Thu Oct 14, 2021 9:12 am
by Ian
Make a save state I'll have a look

Re: Tilegen background colour

PostPosted: Sun Oct 31, 2021 12:54 am
by Bart
I just saw this. Are we not using color 0? Indeed, this is very common for tile generators: the clear color is color 0, which allows it to be something other than black. It's a really easy fix if so.

EDIT: One complication is whether color offsets apply here. The Model 3 tile gen has an interesting color offset feature used for various fade-in/fade-out effects (and the lightning in Lost World) that isn't present on System 24. These are applied per layer. I wonder if palette 0 color 0 is modified by e.g. the layer B color offset. I assume not and will proceed accordingly.

Re: Tilegen background colour

PostPosted: Mon Nov 01, 2021 10:06 pm
by Bart
Is there a video I can look at of Harley booting? Color 0 for palette 0 is black, so even if I modify the code to always draw this for the bottom clear color, it has no effect.

Re: Tilegen background colour

PostPosted: Tue Nov 02, 2021 12:47 am
by Jiterdomer
This is from Conversus' video:
https://youtu.be/A7VIIoACl2k

Here's clips from various vids:
https://youtu.be/S95UGDKoljc
https://youtu.be/1GAxlXPo3uY

Re: Tilegen background colour

PostPosted: Mon Nov 15, 2021 2:24 pm
by Ian
Lost world has the same. Right from the start the background is white

https://www.youtube.com/watch?v=IyGpwq5A-yY

Re: Tilegen background colour

PostPosted: Sat Nov 20, 2021 4:12 am
by Ian
Well I think I found out where the white is coming from. I *think* it's coming from jtag, it seems to get written at exactly the point where the screen flashes white in harley, and the same for the intro in lost world.

Re: Tilegen background colour

PostPosted: Sat Dec 04, 2021 8:46 pm
by model123
There was a video of Harley-Davidson & L.A. Riders
https://www.youtube.com/watch?v=kraFwQluDpY