Tilegen background colour

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Tilegen background colour

Postby Ian » Sat Oct 02, 2021 3:29 pm

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
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Tilegen background colour

Postby Ian » Sun Oct 03, 2021 5:24 am

Screenshot of what I mean, this is from harley
Attachments
harley daughter board.jpg
harley daughter board.jpg (112.09 KiB) Viewed 573 times
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Tilegen background colour

Postby Jiterdomer » Thu Oct 14, 2021 8:36 am

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
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 627
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, California

Re: Tilegen background colour

Postby Ian » Thu Oct 14, 2021 9:12 am

Make a save state I'll have a look
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Tilegen background colour

Postby Bart » Sun Oct 31, 2021 12:54 am

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Tilegen background colour

Postby Bart » Mon Nov 01, 2021 10:06 pm

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Tilegen background colour

Postby Jiterdomer » Tue Nov 02, 2021 12:47 am

This is from Conversus' video:
https://youtu.be/A7VIIoACl2k

Here's clips from various vids:
https://youtu.be/S95UGDKoljc
https://youtu.be/1GAxlXPo3uY
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 627
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, California

Re: Tilegen background colour

Postby Ian » Mon Nov 15, 2021 2:24 pm

Lost world has the same. Right from the start the background is white

https://www.youtube.com/watch?v=IyGpwq5A-yY
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Tilegen background colour

Postby Ian » Sat Nov 20, 2021 4:12 am

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.
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: Tilegen background colour

Postby model123 » Sat Dec 04, 2021 8:46 pm

There was a video of Harley-Davidson & L.A. Riders
https://www.youtube.com/watch?v=kraFwQluDpY
model123
 
Posts: 108
Joined: Wed Mar 08, 2017 8:34 am

Next

Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 0 guests