Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-09-26 05:06:15

visionseeming
New member
Registered: 2011-07-19
Post 5/7

Number of Shades of Gray of GameBoy

Just a quick question.  Up until recently, I was under the impression that there were only 4 unique gray shades available for display on the GB's LCD.  However, reading about the palette registers just seems to make my impression wrong.

FF47 - BGP - BG Palette Data (R/W) - Non CGB Mode Only
This register assigns gray shades to the color numbers of the BG and Window tiles.
  Bit 7-6 - Shade for Color Number 3
  Bit 5-4 - Shade for Color Number 2
  Bit 3-2 - Shade for Color Number 1
  Bit 1-0 - Shade for Color Number 0
The four possible gray shades are:
  0  White
  1  Light gray
  2  Dark gray
  3  Black

So, if I'm understanding this correctly, for each of the 4 gray shades for BG (or 3 for OBJ) one can choose from 4 sub-shades?  Or is it just that you can choose which color number corresponds to which gray shade?  If it is the latter, then one can achieve the same effect by just modifying the character data right?  What is the advantage of having this additional control?

Last edited by visionseeming (2011-09-26 05:09:27)


"To some people, Pokemon hacks are just games. Others use them for battling/trading. Us? We study the hacks like a profession. But we don't know everything yet. There are still many mysteries left to be solved. That's why we hack Pokemon every day."--Mateo

Offline

#2 2011-09-26 05:47:13

285/701

Re: Number of Shades of Gray of GameBoy

visionseeming wrote:

Just a quick question.  Up until recently, I was under the impression that there were only 4 unique gray shades available for display on the GB's LCD.

That’s correct.

visionseeming wrote:

So, if I'm understanding this correctly, for each of the 4 gray shades for BG (or 3 for OBJ) one can choose from 4 sub-shades?  Or is it just that you can choose which color number corresponds to which gray shade?

The latter.

visionseeming wrote:

If it is the latter, then one can achieve the same effect by just modifying the character data right?  What is the advantage of having this additional control?

It’s much faster—changing it affects more pixels in a single write than editing the image manually.

You might want to look into the FadeIn and FadeOut routines, which use this register to gradually fade to or from a solid color.

Board footer

Powered by FluxBB