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

Color emphasis info??
http://forums.nesdev.com/viewtopic.php?f=16&t=15416
Page 1 of 1

Author:  Zepper [ Sat Jan 21, 2017 3:38 pm ]
Post subject:  Color emphasis info??

Does the wiki bring color emphasis info? Is available the % of each component (RGB) when there's color emphasis enabled???

I have a few numbers/info in my emulator, but... no clue where they came from...???
Code:
   int emphasis_table[21] = {
/* 001 Red      */  1239,  915,  743,
/* 010 Green    */   794, 1086,  882,
/* 011 Yellow   */  1019,  980,  653,
/* 100 Blue     */   905, 1026, 1277,
/* 101 Magenta  */  1023,  908,  979,
/* 110 Cyan     */   741,  987, 1001,
/* 111 Black    */   750,  750,  750
   };

Author:  koitsu [ Sat Jan 21, 2017 4:16 pm ]
Post subject:  Re: Color emphasis info??

https://wiki.nesdev.com/w/index.php/NTS ... _Tint_Bits

Formulas are there, as well as under "Emulating in C++ code". Also, don't overlook the last line of the "Color Tint Bits" section. These formulas look relevant to actual NTSC emulation and not so much "what values should I add to literal R/G/B space". In other words: how to implement this is going to vary from emulator to emulator. Maybe someone can provide formulas for R/G/B methodology.

For a list of games that use these bits: https://wiki.nesdev.com/w/index.php/Col ... asis_games

Author:  lidnariq [ Sat Jan 21, 2017 4:34 pm ]
Post subject:  Re: Color emphasis info??

koitsu wrote:
Maybe someone can provide formulas for R/G/B methodology.
Each bit adds nonlinearly, and also most clip in RGB. So: accurate calculation of emphasis colors and brightnesses are really only practical to do via the YIQ or YUV colorspaces.

Author:  Zepper [ Sat Jan 21, 2017 7:57 pm ]
Post subject:  Re: Color emphasis info??

Hmm... Who told you that color emphasis must be inside a NTSC color/video encoder? After all, it's not true that no math can be done in RGB space! I disagree.

The PPU section covering the emphasis bits must bring information about the color emphasis in RGB color space, since it is/was the default for most of the NES emulators. I'm 19 years working on my emulator for a pixel-perfect PPU output in RGB to be called "inaccurate" due to the lack of a NTSC filtering..!?

Quote:
Maybe someone can provide formulas for R/G/B methodology.

EDIT: updated the wiki with % values for each RGB component, including the emphasis effect, like red+green=yellow.

Author:  Zepper [ Sun Jan 22, 2017 6:28 am ]
Post subject:  Re: Color emphasis info??

Sorry.
Bad mood.

Author:  Dwedit [ Mon Feb 13, 2017 10:24 am ]
Post subject:  Re: Color emphasis info??

It's not so much about NTSC filtering, simulating the weird pixel edges, and getting the cool dot crawl artifacts correct.
It's about how the PPU actually makes a signal, it's a square wave with real voltages, and they get interpreted by TVs as a composite signal. Using the emphasis bits decreases the voltage at specific parts of the wave, and that affects how the solid colors turn out.

So you can either do all the complicated math to turn voltages and square waves into RGB, or rely on someone else who already did the complicated math. If you like, I could extract the 8 Nintendulator NTSC palettes. (I'm a huge Nintendulator palette fanboy here, that palette looks so much nicer than all the other attempts at a TV mode palette)

The problem with multiplying RGB components by a number is that the answer you get is simply wrong.

Author:  Zepper [ Mon Feb 13, 2017 2:09 pm ]
Post subject:  Re: Color emphasis info??

THIS is the answer.
http://bisqwit.iki.fi/utils/nespalette.php

Period.

Author:  tokumaru [ Mon Feb 13, 2017 4:03 pm ]
Post subject:  Re: Color emphasis info??

Speaking of color emphasis and the wiki, I was looking the other day and couldn't find any information about the colors that aren't affected by color emphasis. If I remember correctly, columns $xE and $xF aren't affected, while everything else is. Is this in the wiki anywhere? I think this is a pretty big deal (apparently there are even emulators that get this wrong), but I'm not sure what the best place for this information would be, if it isn't already there.

Author:  tokumaru [ Mon Feb 13, 2017 4:06 pm ]
Post subject:  Re: Color emphasis info??

Zepper wrote:

I wish we had access to the script that generates these palettes.

Author:  tepples [ Mon Feb 13, 2017 4:38 pm ]
Post subject:  Re: Color emphasis info??

tokumaru wrote:
Speaking of color emphasis and the wiki, I was looking the other day and couldn't find any information about the colors that aren't affected by color emphasis. If I remember correctly, columns $xE and $xF aren't affected, while everything else is. Is this in the wiki anywhere?

Search the wiki for emphasis.

NTSC video states: "A test performed on NTSC NES shows that while emphasis affects color $1D, it does not affect colors $0E, $0F, $1E, $1F, $2E, $2F, $3E, and $3F." PPU registers used to misleadingly state "all colors" were affected, but I just revised it to state $00-$0D, $10-$1D, $20-$2D, $30-$3D.

Author:  Zepper [ Mon Feb 13, 2017 5:57 pm ]
Post subject:  Re: Color emphasis info??

tokumaru wrote:
Zepper wrote:

I wish we had access to the script that generates these palettes.

The worst side is someone having a cow about this. :lol: :lol: :lol:

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