| View previous topic :: View next topic |
| Author |
Message |
Immortal Grandmaster of C64

Joined: 13 Oct 2004 Posts: 4704
|
Posted: Sat Sep 26, 2009 8:48 pm Post subject: |
|
|
| Quote: | | Heh, I've run into the reverse, my C64 and C128 (through composite, s-video, and rf) on two tv's (20 year age difference) show a palette extremely close to the VICE default one. A friends' C64 does on his tv as well. |
thats interisting.... mmmh
r.cade: with your setup, could you check the following: display that testpicture you used, then at your monitor turn down the "color" so you get a black/white picture - do you see 5 or 7 different levels of brightness ? _________________
|
|
| Back to top |
|
 |
Master of C64


Joined: 28 Aug 2004 Age: 41 Posts: 1424 Location: Augusta, Georgia, USA
|
Posted: Sat Sep 26, 2009 9:04 pm Post subject: |
|
|
On my 1702, reducing the color knob all the way doesn't remove all the color, it still has a little so I can't tell.
On my 20" CRT television. It appears to be 9 levels, which is what Pepto found. http://www.pepto.de/projects/colorvic/
1) white
2) yellow, light green
3) light gray, cyan
4) pink, green
5) light blue, medium gray
6) purple, orange
7) red, dark grey
8) blue, brown
9) black _________________ |
|
| Back to top |
|
 |

Joined: 27 Mar 2003 Posts: 1102
|
Posted: Sat Sep 26, 2009 9:21 pm Post subject: |
|
|
| r.cade wrote: | | So the default palette of a PAL C64 is what VICE looks like by default? |
This is difficult to answer because I have two LCDs side by side and they will show a slightly different tint/hue to the colours. Mass market LCD is not very good and each person will see something different on the monitor/TV.
Sony Trinitons have a habit also of making grey scales look very slightly blue too (but I always preferred that and all my TVs were set to 'cold' colour temperature too...I think of all the CRT TVs I have the most even and accurate one is probably the Mitsubishi ones. I did once write a simple program in vice and on a real C64 and run them side by side...yes I was very bored that Tuesday.
The only way I can get those kind of cyan/blue shades for light blue border on power up is to turn up one of the pots on the C64 modulator all the way to max.
Isn't never twice the same colour joke re: NTSC to do with artefacting issues though or is it to do with colour production? Old episodes of The Next Generation filmed on NTSC video and converted to PAL format always made the actors faces a bit purple but I assumed that was due to going from NTSC>>>PAL really. |
|
| Back to top |
|
 |
Master of C64


Joined: 28 Aug 2004 Age: 41 Posts: 1424 Location: Augusta, Georgia, USA
|
Posted: Sat Sep 26, 2009 9:24 pm Post subject: |
|
|
I certainly wasn't trying to start any argument, I was just matching my LCD to my 1702. My CRT television is *slightly* different in the purple color mostly.
Maybe my LCD is just way off from everyone else's. It's an Acer 22" connected via DVI to a GeForce 8600 GTS. _________________ |
|
| Back to top |
|
 |

Joined: 27 Mar 2003 Posts: 1102
|
Posted: Sun Sep 27, 2009 12:58 pm Post subject: |
|
|
| r.cade wrote: | I certainly wasn't trying to start any argument, I was just matching my LCD to my 1702. My CRT television is *slightly* different in the purple color mostly.
Maybe my LCD is just way off from everyone else's. It's an Acer 22" connected via DVI to a GeForce 8600 GTS. |
I'm not saying anyone is right or wrong or preaching so no argument from me, especially between NTSC and PAL colours, and I know from experience that the C64 always looked slightly different on different TVs/monitors/video format.
Like I say there will be subtle differences between them, all I know is LCD is not that great usually (there are some exceptions of course) and that the over saturated palettes of early emulators like the C64S is not right as it was quite a muted set of colours.
Anyway probably off topic but this was fantastic from Pepto (he did a C64 palette too) and an email from Bob Yannes about how the VIC-II colours are generated.
from here
| Bob Yannes wrote: |
Subject: "Re: VIC-II colors"
From: Robert 'Bob' Yannes
To: Philip 'Pepto' Timmermann
Date: 27.09.1999
I was involved with the development of the VIC-II, however the actual implementation of the design, including the Color Palette, was done by someone else. I have forwarded your message to him, but it is up to him if he wants to respond.
I can tell you that the design was based on the principle that adding a sine wave of a particular frequency and amplitude to an inverted version of the same sine wave at a different amplitude produces a phase-shifted sine wave of the same frequency. The amount of phase shift is directly proportional to the amplitudes of the two sine waves.
The VIC-II used the 14.31818 MHz master clock input (4 times the NTSC color burst frequency of 3.579545 MHz) to produce quadrature square-wave clocks. These clock signals were then integrated into triangle waves using analog integrators. The triangle waves were then integrated again into sine waves (actually rounded triangle waves, but good enough for this application). This produced a 3.579545 MHz sine wave, inverse sine wave, cosine wave and inverse cosine wave.
An analog summer was used to create the phase-shifts in the Chroma signal by adding together the appropiate two waveforms at the appropiate amplitudes. The Color Palette data went to a look-up table that specified the amplitude of the waves by selecting different resistors in the gain path of the summer. The end result was that we could create any hue we wanted by looking at the NTSC color wheel to determine the phase-shift and then picking the appropiate resistor values to produce that phase-shift.
Color Saturation was controlled by scaling the gain of the summer. When we picked the resistor values to determine the output phase-shift, we also scaled them to produce the desired output amplitude. Luminance was controlled using a simple voltage divider which switched different pull-down resistors into the open-drain output. We could create any Luminance we wanted by choosing the desired resistor value.
I'm afraid that not nearly as much effort went into the color selection as you think. Since we had total control over hue, saturation and luminance, we picked colors that we liked. In order to save space on the chip, though, many of the colors were simply the opposite side of the color wheel from ones that we picked. This allowed us to reuse the existing resistor values, rather than having a completely unique set for each color.
I believe that Commodore actually got a patent on this technique. It was certainly superior to the Apple or Atari approach at the time, as they ended up with whatever colors that came out--ours allowed the designer to freely select Hue, Saturation and Luminance.
Since all of this was based on selecting different resistor values and resistance varied from chip lot to chip lot, there was variation from one Commodore 64 to another. It wasn't as bad as it could have been though, since all of the Chrominance selection was based on resistor ratios, which could be kept constant even if the actual resistor values varied. Luminance was more of a problem. A trimmer resistor should really have been used to pull up the output. This would have allowed the Luminance to be adjusted for consistency from unit to unit, however Commodore didn't care enough about consistency to bother with adjusting each unit.
--
Robert 'Bob' Yannes
|
What was interesting is that the original VIC-II had 4 luminances apparently and the later ones had 8. Anyway that stuff is fascinating but some people may think it's boring. |
|
| Back to top |
|
 |
Forum Junkie

Joined: 21 Jun 2004 Posts: 500 Location: Göteborg, Sweden
|
Posted: Mon Sep 28, 2009 9:21 pm Post subject: |
|
|
It's been a couple of years since I saw an NTSC C64 live, but r.cade's palette seems to be a pretty close match. It would be awesome if VICE got proper NTSC emulation, and measured NTSC colors. _________________ |
|
| Back to top |
|
 |
Immortal Grandmaster of C64

Joined: 13 Oct 2004 Posts: 4704
|
Posted: Mon Sep 28, 2009 10:16 pm Post subject: |
|
|
make a proper diagram from those measurements (like the one from pepto) and i will add it  (however, according to bob yannes there is little to no difference between pal and ntsc in that regard - infact the implementation in vice IS based on how it works in ntsc, not pal =P) _________________ |
|
| Back to top |
|
 |
Forum Junkie

Joined: 21 Jun 2004 Posts: 500 Location: Göteborg, Sweden
|
Posted: Tue Sep 29, 2009 7:40 am Post subject: |
|
|
If Adrian's measurements are accurate, the NTSC colors should be along the lines of:
yellow: 0-ish
(light) blue: 180
brown: 30
orange: 45
cyan: 240
(light) red: 60
(light) green: 285
purple: 120
Those numbers seem weird though, since there's a mix of 30/60 degree colors, and 45 degree colors. Maybe I can get Adrian to measure them again with his new scope. _________________ |
|
| Back to top |
|
 |
Newbie
Joined: 29 Sep 2009 Posts: 1
|
Posted: Tue Sep 29, 2009 11:43 pm Post subject: |
|
|
| MagerValp wrote: | If Adrian's measurements are accurate, the NTSC colors should be along the lines of:
yellow: 0-ish
(light) blue: 180
brown: 30
orange: 45
cyan: 240
(light) red: 60
(light) green: 285
purple: 120
Those numbers seem weird though, since there's a mix of 30/60 degree colors, and 45 degree colors. Maybe I can get Adrian to measure them again with his new scope. |
Sounds like a good excuse to set up the scope/analyzer again. Might take a few days, but the results should be a lot better. |
|
| Back to top |
|
 |
Grandmaster of C64


Joined: 06 May 2004 Age: 38 Posts: 1658 Location: Louisiana, USA
|
Posted: Wed Sep 30, 2009 12:59 am Post subject: |
|
|
Yeah, do it!  dW, that would be cool. Would like to see an NTSC RGB palette. _________________ |
|
| Back to top |
|
 |
Immortal Grandmaster of C64

Joined: 13 Oct 2004 Posts: 4704
|
Posted: Wed Sep 30, 2009 12:34 pm Post subject: |
|
|
yes please. it should be rather trivial to put it into vice then  _________________ |
|
| Back to top |
|
 |
Master of C64


Joined: 11 Nov 2007 Posts: 1282 Location: USA santa clara
|
Posted: Sun Oct 11, 2009 12:52 am Post subject: |
|
|
well ntsc means "never the same color twice"
depending on brightness and contrast all colors shift slightly
then throw in color and tint controls and all hell breaks loose
maybe you pc monitor is slightly maladjusted colors shift between the brightness settings and what is you kelvin heat setting is it white or warm |
|
| Back to top |
|
 |
Grandmaster of C64


Joined: 06 May 2004 Age: 38 Posts: 1658 Location: Louisiana, USA
|
Posted: Sun Oct 11, 2009 6:44 pm Post subject: |
|
|
| bohoki wrote: | well ntsc means "never the same color twice"
depending on brightness and contrast all colors shift slightly
then throw in color and tint controls and all hell breaks loose
maybe you pc monitor is slightly maladjusted colors shift between the brightness settings and what is you kelvin heat setting is it white or warm |
Yes, that's funny tease that some PAL people like to say, but you realize that PAL/SECAM/NTSC color computer monitor mostly all have brightness, contrast, color, and tint controls, right? NTSC really stands for National Television System(s) Committee, of course.
The PAL palettes I've seen have been kind of drab compared to what I see on my NTSC CBM monitors (at default settings). However, they have the benefit of a kind of vertical blurring that helps to make it seem like there are multiple colors.
I don't know that one is "better" than the other...  _________________
|
|
| Back to top |
|
 |
Immortal Grandmaster of C64

Joined: 13 Oct 2004 Posts: 4704
|
Posted: Mon Oct 19, 2009 10:39 pm Post subject: |
|
|
| Quote: | | Yes, that's funny tease that some PAL people like to say, but you realize that PAL/SECAM/NTSC color computer monitor mostly all have brightness, contrast, color, and tint controls, right? |
the "tint" control does NOT exist on any pal equipment, only exceptions are oldish products produced for an international market (like 1084s and 1701s). the tint controls use is exclusivly for adjusting the phase error which ntsc introduces during transmission. in a pal system this error does not exist, due to the phase alternating on every line. (this is infact the whole point of using pal, and the entire improvement over ntsc)
| Quote: | | The PAL palettes I've seen have been kind of drab compared to what I see on my NTSC CBM monitors (at default settings) |
which like i said before is kinda weird - because infact the color generation in vice IS modelled after how it, according to bob yannes, works in NTSC (not pal!)
| Quote: | | However, they have the benefit of a kind of vertical blurring that helps to make it seem like there are multiple colors. |
that has nothing to do with the palette though, but is an artefact of the pal decoding. a similar (but not the same) effect exists on ntsc too
i'd be really interisted in some good measurements (remember to measure a couple of c64s and not just one to rule out funny extremes). since there are actually also ntsc people who confirm the colors beeing like their c64s, my personal guess is that there exists another vic revision that generates the colors slightly different than how bob yannes remembered. _________________
|
|
| Back to top |
|
 |
Grandmaster of C64


Joined: 06 May 2004 Age: 38 Posts: 1658 Location: Louisiana, USA
|
Posted: Tue Oct 20, 2009 12:00 am Post subject: |
|
|
| groepaz wrote: | | the "tint" control does NOT exist on any pal equipment, only exceptions are oldish products produced for an international market (like 1084s and 1701s). the tint controls use is exclusivly for adjusting the phase error which ntsc introduces during transmission. in a pal system this error does not exist, due to the phase alternating on every line. (this is infact the whole point of using pal, and the entire improvement over ntsc) |
Well I'll be damned! I was wrong. I thought it might happen one day . But seriously, thanks for that explanation. Interesting.
| groepaz wrote: | | which like i said before is kinda weird - because infact the color generation in vice IS modelled after how it, according to bob yannes, works in NTSC (not pal!) |
I believe you, but one day I'll take a picture of my PC monitor with the Pepto palette next to my 2002 so you can see the difference. However, that being said, the Ptoing palette is very close.
| groepaz wrote: | | that has nothing to do with the palette though, but is an artefact of the pal decoding. a similar (but not the same) effect exists on ntsc too |
Yeah, bad wording on my part, that's what I meant.
| groepaz wrote: | | i'd be really interested in some good measurements (remember to measure a couple of c64s and not just one to rule out funny extremes). since there are actually also ntsc people who confirm the colors being like their c64s, my personal guess is that there exists another vic revision that generates the colors slightly different than how bob yannes remembered. |
Me too. The photos I take of my TV screen come out with different colors. It's hard to compare them. _________________
Last edited by saehn on Sun Jan 30, 2011 9:35 pm; edited 1 time in total |
|
| Back to top |
|
 |
Immortal Grandmaster of C64

Joined: 13 Oct 2004 Posts: 4704
|
Posted: Tue Oct 20, 2009 1:44 am Post subject: |
|
|
| Quote: | | I believe you, but one day I'll take a picture of my PC monitor with the Pepto palette next to my 2002 so you can see the difference. However, that being said, the Ptoing palette is very close. |
| Quote: | | Me too. The photos I take of my TV screen come out with different colors. It's hard to compare them. |
the fundamental problem with all that is, that the colors cant be compared in any useful way once they are converted to an rgb palette (because there infinitely correct ones) trying to compare colors in rgb space infact is the one reason for the horrible emulator colors of the 90s  _________________
|
|
| Back to top |
|
 |
Immortal Grandmaster of C64

Joined: 13 Oct 2004 Posts: 4704
|
Posted: Tue Feb 02, 2010 7:25 am Post subject: |
|
|
maybe i found an explaination ... appearently there exist (atleast) two different color decoder matrices in ntsc world.
default decoder matrix:
SONY CXA2025 decoder matrix:
these have been generated using proper ntsc color generation (according to peptos article, but using YIQ color space and NTSC gamma), the only difference between the two is the decoder matrix (or in other words: different monitor/tv) _________________ |
|
| Back to top |
|
 |
Master of C64


Joined: 28 Aug 2004 Age: 41 Posts: 1424 Location: Augusta, Georgia, USA
|
Posted: Tue Feb 02, 2010 1:34 pm Post subject: |
|
|
That looks exactly like the difference I see in my equipment, which is why I did the new palette! _________________ |
|
| Back to top |
|
 |
Grandmaster of C64


Joined: 03 Feb 2004 Age: 41 Posts: 2483 Location: Columbus, Ohio
|
Posted: Tue Feb 02, 2010 2:53 pm Post subject: |
|
|
The Sony one looks a lot better/brighter and is what I am used to. |
|
| Back to top |
|
 |
Newbie
Joined: 01 Sep 2009 Age: 31 Posts: 20 Location: Milwaukie (Oak Grove), OR
|
Posted: Thu Jun 10, 2010 6:40 pm Post subject: Re: C64 Emulator Palette from my NTSC 1702 |
|
|
| r.cade wrote: | I've never been quite happy with the palette in the different C64 emulators. I tried the "pepto" palettes which is supposed to be right, but it looks nothing like my real setup. Adjusting the saturation and other items makes it no closer to my "real" 1702 and C64.
I know that the palettes differ between C64's and 1702's and depend on people's tastes, but below is one that matches my setup exactly. My 1702 is set to the detent on all knobs and I am using an Acer 22" LCD set to defaults (which makes a difference also for matching purposes).
Cut/paste it into a file called 1702.vpl and load as an external palette into VICE (or CCS) and you can see if it matches your setup.
^^^snip^^^
# Pete Rittwage's NTSC C64 and 1702 palette V2
# Taken from 6567R8 on a 1984 board (250425)
00 00 00 0
FF FF FF E
90 30 40 4
93 ff ff C
70 2b ff 8
40 b7 10 4
20 00 bf 4
e0 e0 60 C
b0 50 30 4
80 30 00 4
ff 7b 9e 8
40 40 40 4
90 90 90 8
90 ff 90 8
30 60 ff 8
c0 c0 c0 C |
I wonder if you could do one for the VIC-I palette used for the VIC-20 computer? |
|
| Back to top |
|
 |
Newbie

Joined: 09 Jun 2010 Age: 36 Posts: 9 Location: Sweden
|
Posted: Thu Jun 10, 2010 7:50 pm Post subject: |
|
|
Interesting discussion!
I'd like to emphasize that the actual (LCD/CRT) monitor (and graphics card) used on the emulating PC also affects things a bit, I've done some colour calibration in the last couple years, and I can tell you without a reference chart or hardware device to help out it can be hard (impossible) to tell if a display gives you good colors, just from the point of view of Red/Green/Blue balance and White point / Black point.
Or if it gives a similar picture as another set, you kinda have to have them side by side.
Several of these parameters can be interdependant too, and I suspect that's very true for TV's also (I reckon the last priority on a cheap TV is correct colour reproduction).
Now all the lovely mangling that say the C64s RF modulator does (my reference as I have neither a composite or S-Video cable), and the NTSC/PAL encoding/decoding is indeed going to give a signal that's been through a few things before it reaches the display panel... _________________ OPEN 92,48,118,103"@:index.htm,S,W": CLOSE 1 |
|
| Back to top |
|
 |
Master of C64


Joined: 28 Aug 2004 Age: 41 Posts: 1424 Location: Augusta, Georgia, USA
|
Posted: Sun Jan 30, 2011 4:30 pm Post subject: Re: C64 Emulator Palette from my NTSC 1702 |
|
|
| C64Fan1981 wrote: |
I wonder if you could do one for the VIC-I palette used for the VIC-20 computer? |
I could, but I think the VIC-20 has a knob inside that changes the hue, so I would not know where to start there as far as unity. All my VIC seems to have slightly different color because CBM played with that knob at the factory (and I probably have also).
I will grab a couple and see, though. Sure. _________________
|
|
| Back to top |
|
 |
Master of C64


Joined: 05 Sep 2007 Posts: 1209 Location: Norway
|
Posted: Sun Aug 28, 2011 2:59 pm Post subject: |
|
|
The Vice palette is very close to what I can remember the C64 was on our (PAL) television back in the 80s. I remember using the css64 emulator before the Vice one and felt it just looked wrong compared to what I remember it to be. So I guess it all depends on how the colours were rendered on your specific television/monitor.
More interesting though would be to know what palette the pixel artists prefer when working with the c64? I always felt the muted Vice one was easier to work with when creating graphics as fully saturated colours tend to make the graphics "garish" imo. But I guess thats up to personal preference also.  _________________ |
|
| Back to top |
|
 |
Master of C64

Joined: 05 Aug 2009 Posts: 1123
|
Posted: Thu Sep 01, 2011 12:13 am Post subject: |
|
|
Here's the palette I've been using. I don't have a real C64 hooked up at the moment, so I can't compare them, but on my system, this is pretty much how I remember the C64 looking when attached to my TV. I used some other palette as the starting point, although I can't remember now, which one it was.
| Code: | #
# VICE Palette file
#
00 00 00 0
FF FF FF 0
D0 25 12 0
7B D7 E2 0
AF 61 E0 0
70 B4 45 0
62 55 DC 0
EC EC 57 0
C8 5A 12 0
80 5F 07 0
F6 9B 8F 0
55 55 55 0
80 80 80 0
B9 F2 96 0
B1 B3 FF 0
AB AB AB 0 |
I tried the CRT emulation and, no offense intended, I thought it looked terrible. I wouldn't mind the scanlines, but the color bleeding and blurriness of it started to give me a headache. Not to mention that it's WAY too bright/washed out unless you drastically change the Gamma setting under Colors. At least it was for me. |
|
| Back to top |
|
 |
Grandmaster of C64


Joined: 13 Jan 2003 Posts: 1950
|
Posted: Thu Sep 01, 2011 7:52 am Post subject: |
|
|
| Rekrul wrote: | | Here's the palette I've been using. I don't have a real C64 hooked up at the moment, so I can't compare them, but on my system, this is pretty much how I remember the C64 looking when attached to my TV. |
Looks very different to a real C64's palette. |
|
| Back to top |
|
 |
|