The NES Palette

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Drag
Posts: 1350
Joined: Mon Sep 27, 2004 2:57 pm
Contact:

The NES Palette

Post by Drag »

This must've been brought up countless times before, but doing a search on this forum brings up a lot of stuff that has nothing to do with what I'm looking for, so forgive me if the answer's buried somewhere and I just missed it.

In designing some graphics for one of the numerous projects I've started and likely won't finish, I've run into the fact that the palette that I think looks correct tends to produce results that are straight-up *ugly* on palettes that other people use and agree on. So I'd really like a palette that is as accurate as can be, and that most everyone can agree on. Not just "this palette is accurate", but "this palette is accurate, and I'm using it right now".

I use a palette that has saturated colors, probably moreso saturated than others would prefer, but given my recent experiences with bringing my NES to my dorm with me, I really would have to agree that the saturated colors are what looks the most "accurate" to me.

However, numerous other palettes I've come across that others recommend to me are far too dark, too unsaturated, have strange imbalances with the saturation of certain channels, some hues are off, etc, etc. I understand that NTSC TVs will produce differing images from TV to TV, but I never thought the difference would be *that* big, such that the colors would look just straight-up incorrect to me.


TLDR:
Please help me find an NES palette that is as accurate as can be and that everyone can agree on.

Thanks a bunch
User avatar
hap
Posts: 355
Joined: Thu Mar 24, 2005 3:17 pm
Contact:

Post by hap »

There is no such thing as "an NES palette that is as accurate as can be and that everyone can agree on."
Use the palette or emulator simulated tv settings that look most correct to you personally.
Drag
Posts: 1350
Joined: Mon Sep 27, 2004 2:57 pm
Contact:

Post by Drag »

The problem is that I'm designing graphics, and more often than not, the colors I choose look like crap and lack contrast (sometimes) in other palettes I've seen others use.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

Drag wrote:The problem is that I'm designing graphics, and more often than not, the colors I choose look like crap and lack contrast (sometimes) in other palettes I've seen others use.
Do they look like crap on a real NES hooked to a TV? That's all that should matter. Personally, I trust what Nestopia outputs through the NTSC filter, and use that when drawing stuff.
User avatar
Memblers
Site Admin
Posts: 3901
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

Palette differences in emulators are insignificant compared to how the video output from the system looks.
See the pictures here for example:
http://www.disgruntleddesigner.com/chri ... shots.html

As for palettes, I've heard that NTSC also stands for Never The Same Color.
User avatar
Sivak
Posts: 316
Joined: Tue Jul 17, 2007 9:04 am
Location: Somewhere
Contact:

Post by Sivak »

Yeah, it's tough to really get something "perfect". I have personally considered using my NES palette testing program and trying to eyeball the colors and make my own palette sometime. There are colors that seem significantly different on my TV then they do in palettes I've seen.

Some examples:
$15 - looks much more red on TV as opposed to a purplish red
$26 - most palettes have this as a peach, my TV has it as an orange
$28 - Looks like a greener yellow on TV, but still a definite yellow
Any color ending with 9 - Has less yellow in it on TV than most emu palettes show

These are the ones I remember, but I do recall other colors looking very similar... $2D and $3D show up on my TV fine, but I've heard on some displays they end up as being black.
frantik
Posts: 370
Joined: Tue Mar 03, 2009 3:56 pm

Post by frantik »

there's a dark brown color on FCEUD that looks dark green on other emulators.. it makes my castle levels look like sewer levels on super mario unlimited.. i'm wondering how they will look on the real nes..

here's two screen shots.. one from nestopia and one from fceud.. it seems $08 is the worst offender but a lot of the hues have a green tinge
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Sivak wrote:Some examples:
$15 - looks much more red on TV as opposed to a purplish red
$26 - most palettes have this as a peach, my TV has it as an orange
Then take your $26 to another town and sell it there for five times the Bells :-)
$28 - Looks like a greener yellow on TV, but still a definite yellow
Have you tried twisting the tint knob in Nestopia's NTSC filter to make it match your TV, or vice versa?
These are the ones I remember, but I do recall other colors looking very similar... $2D and $3D show up on my TV fine, but I've heard on some displays they end up as being black.
They end up black on PlayChoice, Famicom Titler, and some Sharp TV that has a built-in Famicom slot. All these use RGB PPUs, whose output acts more like emulator output than like the typical NES output.
frantik wrote:here's two screen shots.. one from nestopia and one from fceud
They're both 256x240, so I don't think the Nestopia one is from the NTSC filter.
NewRisingSun
Posts: 1312
Joined: Thu May 19, 2005 11:30 am

Post by NewRisingSun »

, I've heard that NTSC also stands for Never The Same Color
Which is bull.

The most important reason NES colors differ from TV to TV more than modern consoles or broadcast pictures is that the NES creates illegal colors with negative RGB values. The NTSC standard says nothing about how to treat illegal signals. You'll have the same problem with any PAL TV.
The TV-screen photographed pictures are silly because his TV obviously uses a different (more blueish) white point than his camera expects.

For designing NES graphics, I suggest not wasting too much time caring about the look of any particular color, but about making color combinations look good instead. It doesn't really matter if 0x25 looks more reddish-purple or purplish-red, but it does matter how it looks as a highlight of 0x16.

For maximum compatibility, I suggest only using color combinations within a hue, i.e. 0x07 for shadows, 0x17 for darker areas, 0x27 for lighter areas, and 0x37 for highlights. Problematic combinations to avoid, that are nonetheless found in many games:
0x27+0x36 (SMB3): 0x36 only looks brownish on a monitor with a green-blue white point, which modern monitors don't use. Otherwise, 0x36 will look pinkish.
0x07+0x18 (Duck Tales 2, Ghosts 'n' Goblins): 0x07 only looks brown if the TV handles negative RGB values by reducing saturation. Most TVs clip instead, yielding almost red.
User avatar
koitsu
Posts: 4203
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Post by koitsu »

NewRisingSun wrote:
, I've heard that NTSC also stands for Never The Same Color
Which is bull.

{blah blah}
I'm quite certain Memblers was making a joke -- NTSC standing for Never The Same Colour has been around for years... and actually, isn't bull. ;)
frantik
Posts: 370
Joined: Tue Mar 03, 2009 3:56 pm

Post by frantik »

They're both 256x240, so I don't think the Nestopia one is from the NTSC filter.
i double checked nestopia was in ntsc and it still exports 256x240. i had the video settings on auto palette with the consumer preset chosen in the advanced color settings

i've seen similar greens on virtuanes. also, the standard smb blue sky looks a lot more purple on most tvs that it does on most emulators

what we need is for someone to make a rom which will display all the colors on the screen at once, then someone take a pic with a very good camera. You then color correct it based on the white and black values, and you should get a decent approximation of all the colors, or at least they will all be correct relative to each other
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

frantik wrote:
They're both 256x240, so I don't think the Nestopia one is from the NTSC filter.
i double checked nestopia was in ntsc and it still exports 256x240.
Did you set NTSC emulation as opposed to PAL, or did you set Options > Video > Display > Filter to NTSC? I was talking about the latter.
what we need is for someone to make a rom which will display all the colors on the screen at once, then someone take a pic with a very good camera.
There is Palette test by loopy. But taking a picture of a TV has a few problems:
  • Your camera might not be calibrated. You'll want to manually white-balance against a solid-white screen, either in camera or in an image editor.
  • Your TV might not be calibrated. The black level ("brightness"), white level ("contrast"), saturation ("color"), and hue offset ("tint") might not be factory settings. If you're eyeballing things, you'll want to display your PC's signal and the NES's signal on a single monitor that can handle both composite and VGA signals, such as an HDTV. I have a Vizio 32" TV whose "picture in picture" has a mode to display a composite or S-Video signal on the left and a component or VGA signal on the right, or vice versa.
  • No palette alone can simulate the effect of crosstalk between luma and chroma signals. Play Dr. Mario on an NES and see the diagonal stripes on the title screen. Then play Super Mario Bros. WORLD 1-2 and see how much more jagged the dark blue bricks appear on an NES compared to a PlayChoice or an emulator. Then see how much richer the Blaster Master backgrounds look on an NES because of the fake colors created by the edges of fine details.
6502freak
Posts: 92
Joined: Sun Dec 07, 2008 1:11 pm

Post by 6502freak »

NewRisingSun wrote:
, I've heard that NTSC also stands for Never The Same Color
Which is bull.

The most important reason NES colors differ from TV to TV more than modern consoles or broadcast pictures is that the NES creates illegal colors with negative RGB values. The NTSC standard says nothing about how to treat illegal signals. You'll have the same problem with any PAL TV.
Now you have to explain how NTSC operates in RGB colour space (instead of YIQ), and what exactly are "illegal colours".
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

6502freak wrote:
NewRisingSun wrote:the NES creates illegal colors with negative RGB values. The NTSC standard says nothing about how to treat illegal signals.
Now you have to explain how NTSC operates in RGB colour space (instead of YIQ), and what exactly are "illegal colours".
NTSC specifies a matrix for converting the YIQ components to RGB for display. As I understand NewRisingSun's post, an "illegal color" is a combination of Y, I, and Q that decodes to an RGB signal with one or more negative components.
frantik
Posts: 370
Joined: Tue Mar 03, 2009 3:56 pm

Post by frantik »

tepples wrote:
frantik wrote:
They're both 256x240, so I don't think the Nestopia one is from the NTSC filter.
i double checked nestopia was in ntsc and it still exports 256x240.
Did you set NTSC emulation as opposed to PAL, or did you set Options > Video > Display > Filter to NTSC? I was talking about the latter.
i tried that but the screen shots came out messed up. the green tint is still there however
No palette alone can simulate the effect of crosstalk between luma and chroma signals.
having something which is known to be pretty accurate woudl be a good start for loopy's ntsc filters. maybe nestopia is already pretty accurate though.. i dunno
Post Reply