nesdev.com
http://forums.nesdev.com/

A SNES palette questions/inquiry (possibly silly questions)
http://forums.nesdev.com/viewtopic.php?f=12&t=10756
Page 3 of 4

Author:  tepples [ Sat Mar 08, 2014 7:14 pm ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

There are 15 colors in a sprite palette on the Super NES. Up to eight different palettes may be used at any time. Each sprite may have only one palette, but a single character may be made of more than one sprite each with its own palette.

Colors are specified in an RGB space, with each component's value ranging from 0 (least intensity) to 31 (greatest intensity). You get colors closer to gray if the components' values are close together. For example, (24, 16, 8) is a brownish gray (██████), while (31, 16, 0) is a brighter orange (██████).

Author:  caramelpuffpuff [ Sun Mar 09, 2014 4:09 pm ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

tepples wrote:
There are 15 colors in a sprite palette on the Super NES. Up to eight different palettes may be used at any time. Each sprite may have only one palette, but a single character may be made of more than one sprite each with its own palette.

Colors are specified in an RGB space, with each component's value ranging from 0 (least intensity) to 31 (greatest intensity). You get colors closer to gray if the components' values are close together. For example, (24, 16, 8) is a brownish gray (██████), while (31, 16, 0) is a brighter orange (██████).


You get colors closer to gray if the components' values are close together. For example, (24, 16, 8) is a brownish gray (██████), while (31, 16, 0) is a brighter orange (██████).

Example where I get confused easily. So, there's more colors that it's not viewable in raw palette? Or, so the gray-colors mixed with other colors is PART of the entire SNES palette?

Author:  lidnariq [ Sun Mar 09, 2014 5:03 pm ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

caramelpuffpuff wrote:
Example where I get confused easily. So, there's more colors that it's not viewable in raw palette? Or, so the gray-colors mixed with other colors is PART of the entire SNES palette?
The SNES, as well as many more modern computers, directly produces video in RGB. The "saturation" of a color is related to the difference between the highest number and lowest number of the three numbers that specify an RGB color. The lower the saturation, the more grayish the color is.

Author:  caramelpuffpuff [ Tue Mar 11, 2014 2:44 pm ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

lidnariq wrote:
caramelpuffpuff wrote:
Example where I get confused easily. So, there's more colors that it's not viewable in raw palette? Or, so the gray-colors mixed with other colors is PART of the entire SNES palette?
The SNES, as well as many more modern computers, directly produces video in RGB. The "saturation" of a color is related to the difference between the highest number and lowest number of the three numbers that specify an RGB color. The lower the saturation, the more grayish the color is.


Oh. so the SNES 20000+ palette is in purest form, with saturation ability in them?

Author:  lidnariq [ Tue Mar 11, 2014 5:50 pm ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

caramelpuffpuff wrote:
Oh. so the SNES 20000+ palette is in purest form, with saturation ability in them?
Right. The SNES provides three numbers from 0 to 31, and the three numbers correspond to red, green, and blue brightness respectively. Maybe wikipedia's article on computer palettes is helpful?

Author:  Peperocket [ Sat Jun 10, 2017 3:47 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

koitsu wrote:
Using mode 3 as an example: you have two backgrounds available, one which supports up to 256 colours (i.e. 256 entries in a palette), and another which supports only 16.


Hello all!

Could someone can explain to me how you can use 256 colors palette entries in mode 3 when the PPP tile map index is 3 bits only?

SNES doesn't use the 8bpp RGB color value rather palette entries?

Thanks you for any explanation.

Author:  creaothceann [ Sat Jun 10, 2017 5:31 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

In a 256-color-mode, the tile data for every pixel is 8 bits wide and indexes across the entire palette. Therefore PPP has no effect (except in Direct Color mode).

Author:  psycopathicteen [ Sat Jun 10, 2017 7:18 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

I just want to point out, the Wikipedia palette isn't perfectly accurate. I've played around with it with GIMP and I noticed it's not linear RGB. It might be Byuu's CRT palette but I don't know.

Anyway, I find it funny how much people criticize SNES games for having "washed out pastel colors" when they were meant to be played on a CRT.

Author:  HihiDanni [ Sat Jun 10, 2017 7:47 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

Really? I think the SNES colors look great on just about any type of display.

Author:  Peperocket [ Sat Jun 10, 2017 10:53 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

creaothceann wrote:
In a 256-color-mode, the tile data for every pixel is 8 bits wide and indexes across the entire palette. Therefore PPP has no effect (except in Direct Color mode).


Great!! Thank you for your answer!

Author:  Peperocket [ Sun Jul 09, 2017 9:16 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

Hello!

In mode 3, I must use an unique 256 colors palette for the two backgrounds (256 and 16 colors) or can I use 2 differents palettes?

Thanks!

Author:  psycopathicteen [ Sun Jul 09, 2017 9:53 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

Peperocket wrote:
Hello!

In mode 3, I must use an unique 256 colors palette for the two backgrounds (256 and 16 colors) or can I use 2 differents palettes?

Thanks!


The 256 color background has to share colors with sprites and BG2. Of course not every color has to be used, but the 256 colors you can use for BG1 would include BG2 and sprite colors.

Author:  lidnariq [ Sun Jul 09, 2017 11:11 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

Unless, very specifically, the 8-bit layer uses the hardware R3G3B2 palette. Then you can have a different palette for the 4bpp layer and for sprites from the 8bpp layer.

Author:  Peperocket [ Tue Jul 11, 2017 8:19 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

psycopathicteen wrote:
Peperocket wrote:
Hello!

In mode 3, I must use an unique 256 colors palette for the two backgrounds (256 and 16 colors) or can I use 2 differents palettes?

Thanks!


The 256 color background has to share colors with sprites and BG2. Of course not every color has to be used, but the 256 colors you can use for BG1 would include BG2 and sprite colors.


Thank you for your answer. However, I don't understand this diagram:

MODE # of BGs Max Colors/Tile Palettes Colors Total

3 2 BG1:256 BG2:16 BG1:1 BG2:8 BG1:256 BG2:128


It indicated BG2 is 16 colors but talk about 8 palettes for 128 colors. Is it a mistake or must I understand BG2 can display 16 colors from the 8 first palettes?

Thanks by advance for your help.

Author:  tepples [ Tue Jul 11, 2017 8:35 am ]
Post subject:  Re: A SNES palette questions/inquiry (possibly silly questio

You almost have it.

The 4-bit-per-pixel (4bpp) backgrounds are are BG1 in modes 1, 2, 5, 6, and BG2 in modes 1, 2, and 3. They can display up to 120 colors from CGRAM indices 1-15, 17-31, 33-47, ..., 113-127. Each of these eight sets of 15 colors is one palette. Each map entry sets which of these eight palettes is used for that entry's pixels, allowing one tile to be reused in multiple places with different palettes. Colors 16, 32, 48, ..., and 112 are not usable on a 4bpp background, as they show the layer behind it if any, and color 0 is the backdrop.

Have you programmed NES, TG16, Genesis, Game Boy Color, or Game Boy Advance?

Page 3 of 4 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/