News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: SNES Palette: Transparent Color #0  (Read 2401 times)

RedComet

  • Hero Member
  • *****
  • Posts: 3168
    • View Profile
    • Twilight Translations
SNES Palette: Transparent Color #0
« on: July 21, 2013, 11:48:23 am »
I have a 2BPP font that requires 4 colors to be able to properly handle the anti aliasing on the font. The problem I've run into is the color at index #0 in the palette is transparent. What I would like to do is to specify the starting index of the palette as something other than #0 for this background. Anomie's register document seems to suggest this is possible for *sprites* but I don't see anything about backgrounds.

Alternatively, if there is a way to toggle off the transparent property of color #0 that would be ideal.

Thanks for the help, guys. :)
Twilight Translations - More than just Dragonball Z. :P

Bregalad

  • Hero Member
  • *****
  • Posts: 2751
    • View Profile
Re: SNES Palette: Transparent Color #0
« Reply #1 on: July 21, 2013, 12:09:03 pm »
No there is no way to change this, on SNES (and most other Nintendo consoles for that matter) color #0 is *ALWAYS* transparent.

The best you can do if you absolutely need 4 colours is to use window clipping to disable anything that is behind the BG, and use the 4th desired colour as the background colour.

PS : Anti aliased fonts looks terrible anyways.

RedComet

  • Hero Member
  • *****
  • Posts: 3168
    • View Profile
    • Twilight Translations
Re: SNES Palette: Transparent Color #0
« Reply #2 on: July 21, 2013, 12:44:25 pm »
This one won't, but thanks for the advice. :)
Twilight Translations - More than just Dragonball Z. :P