Retro Game & PC/정보

mednafen color palette 게임별로도 가능

smores 2023. 8. 18. 22:59

https://github.com/Provenance-Emu/Provenance/issues/1484


Mednafen has support for custom user generated Palettes:
"Custom palettes for a system should generally be named .pal, IE "snes.pal", "pce.pal", etc., and placed in the "palettes" directory beneath the Mednafen base directory.

Per-game custom palettes are also supported, and should be named as .pal or ..pal, IE "Mega Man 4.pal" or "Mega Man 4.db45eb9413964295adb8d1da961807cc.pal".

Each entry in a custom palette file consists of 3 8-bit color components; Red, Green, Blue, in that order that define the colors rendered for the Systems it supports."

For instance, with the Provenance TG16/PCE module (using a palette file called "pce.pal") the palette would need to live in /BIOS/com.provenance.pce/palettes/

Mednafen's custom "Palette" feature already works in Provenance today but requires the user to manually create the correct directory structure by hand, place the .pal file in that directory and then restart the System.

In order to make this more elegant we would need to:

------------

Here's an overview of the Mednafen powered systems in Provenance that support custom palettes and any applicable info.

apple2 | apple2.pal | RGB mode 16-color(or 32-color for TFR) palette. The presence of a custom palette will automatically enable RGB video mode if an RGB mode is not already selected via the "apple2.video.mode" setting. If the palette has 32 color entries, the text fringe reduction variant of an RGB mode is enabled.16 or 32 RGB triplets

gb | gb.pal | GameBoy(mono)4 or 8 or 12 RGB triplets

gbc.pal | GameBoy Color 15-bit BGR32768 RGB triplets

gba | gba.pal | GBA 15-bit BGR32768 RGB triplets

gg | gg.pal | GG 12-bit BGR4096 RGB triplets

lynx | lynx.pal | Atari Lynx 12-bit BRG4096 RGB triplets

nes | nes-pal.pal | PAL NES64 or 512 RGB triplets

nes.pal | NTSC NES/Famicom64 or 512 RGB triplets
rp2c04-0001.pal | Arcade RP2C04-000164 RGB triplets
rp2c04-0002.pal | Arcade RP2C04-000264 RGB triplets
rp2c04-0003.pal | Arcade RP2C04-000364 RGB triplets
rp2c04-0004.pal | Arcade RP2C04-000464 RGB triplets
rp2c0x.pal | Arcade RP2C03/RP2C0564 RGB triplets

pce | pce.pal | PCE/TG16 9-bit GRB. If only 512 triplets are present, the remaining 512 greyscale colors will be calculated automatically.512 or 1024 RGB triplets

pce_fast | pce_fast.pal | PCE/TG16 9-bit GRB. If only 512 triplets are present, the remaining 512 greyscale colors will be calculated automatically.512 or 1024 RGB triplets

sms | sms.pal | SMS 6-bit BGR64 RGB triplets

snes | snes.pal | SNES 15-bit BGR32768 RGB triplets

vb | vb.pal | VB LED Active Time; 256 left, 256 right. If only 256 triplets are present, then they will be used for both left and right views. When the custom palette's right view colors are the same as the left view colors(either explicitly, or when using a 256-entry custom palette), and anaglyph 3D mode is active, then the custom palette will not be used.256 or 512 RGB triplets

 

 

 

--------

wonderswan 은 팔레트 지원 안하는 듯...