fceux icon indicating copy to clipboard operation
fceux copied to clipboard

Request: When disabling the BG Layer, have a Pink background for sprite ripping purposes.

Open ReyVGM opened this issue 4 years ago • 4 comments

This might not be possible to do, but when disabling the background layer, would it be possible for the empty background to be pink instead of black?

One of the biggest problems in sprite ripping is the fact that a lot of sprites have black outlines, and when you disable the background layer, the resulting empty black background makes it impossible to properly rip the sprite.

And why pink? Because that color is barely used anywhere, so it will never conflict with the ripping process. Pink is also the color most people use to make transparent backgrounds for sprites.

Thanks in advance!

ReyVGM avatar Feb 03 '21 01:02 ReyVGM

In FCEUX.cfg you can change "gNoBGFillColor". If you put a pink somewhere in your palette, e.g. entry 63, and set that to 63, you can customize the colour that way.

Unfortunately there is no UI for this exposed, just have to edit the text file (and probably make a custom palette).

Alternatively, outside FCEUX, you might like to try Mesen's debug sprite viewer, which shows the sprite layer against a neutral out-of-palette grey.

bbbradsmith avatar Feb 03 '21 01:02 bbbradsmith

Thanks for the info. I'll stick with FCEUX because it has all the options I need and all my files are tied to it too.

I modified the .cfg file now. I'm not going to type every single number to find out which one is pink, but I settled for another rarely used color. Anything is better than having the black background!

Thanks for the help!

ReyVGM avatar Feb 03 '21 01:02 ReyVGM

The numbering is just the standard NES palette colours: https://wiki.nesdev.com/w/index.php/File:Savtool-swatches.png

No games would use those extra "black" colours in the bottom right, which is why I suggested putting a custom colour in your palette at 63 (bottom right corner).

If you have a hex editor the last 3 bytes in a 192-byte .PAL file (there's a bunch that come with FCEUX) would be the RGB values of palette entry 63.

bbbradsmith avatar Feb 03 '21 05:02 bbbradsmith

Thank you. I just changed the number in gNoBGFillColor and found a pink color that should work fine. No need to modify the palette file, at least not for now.

I appreciate it.

ReyVGM avatar Feb 03 '21 05:02 ReyVGM