Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported TNFS car texture has some wrong colors #12

Open
1 of 3 tasks
AndyGura opened this issue Jun 21, 2023 · 0 comments
Open
1 of 3 tasks

Imported TNFS car texture has some wrong colors #12

AndyGura opened this issue Jun 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AndyGura
Copy link
Owner

AndyGura commented Jun 21, 2023

Currently, it is possible to put an image as a car texture, but on certain tracks, some colors are shown completely wrong. CFM has an additional palette !xxx, and it seems to affect displayed colors, but the pattern is unclear

Investigation steps:

  • confirm that the current conversion of 24-bit dos palette colors is correct by comparing colors of images in the menu
  • determine whether index of color affects conversion: fill both palettes with certain color (test with red, green, blue, and grey) and check if all pixels change their color equally
  • assuming index is not affecting anything, fill !xxx palette with some color, repeat tests, and note how color changed on each map and time of a day

The steps above should narrow down the problem and give an idea of how it's done in the actual game

@AndyGura AndyGura added the bug Something isn't working label Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant