dciabrin / ngdevkit

Open source development for Neo-Geo
GNU Lesser General Public License v3.0
273 stars 26 forks source link

Problem with palette on real hardware #15

Closed totologic closed 4 years ago

totologic commented 5 years ago

Hi.

I met a serious issue on real hardware related to palette color mapping.

The 16 colors of a palette are not fully mapped on the tiles. Instead, it looks like only the 4 first colors are mapped.

A simple example, 4 sprites and 4 gradient palettes Result on Mame Result on hardware

I have this result using both the tiletool.py and my own png-to-crom conversion program.

Any idea ?

totologic commented 5 years ago

The issue is fixed.

Following the wiki: Palettes for Neo Geo

The 1st color of the 1st palette MUST be 0x8000 (full black with dark bit activated). That could be a good idea to add it in your examples ;)

dciabrin commented 4 years ago

Fixing this long overdue issue, thanks!