Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

Why 3dfx 1 cards had such a washed out color output? (https://twitter.com)

285 points by mfiguiere 3 days ago | 113 comments | View on ycombinator

AkBKukU 3 days ago |

I have two alternate observations, because VGA is an analog signal there are standards for what the voltages should be. But they were not always followed. Keep in mind that the first two Voodoo cards were also video switchers with a chip to output either the 2D passthrough or the internally generated 3D chip signal created by its own GENDAC.

1. I have a Voodoo 2 paired with an S3 Virge/DX, the Voodoo 2 output level is lower. On a CRT I always have to make the image brighter when running a 3DFX game. Additionally, the V-Sync pulse is not the same as the Virge/DX and the Voodoo 2 image is shifted up.

2. I have a Voodoo Rush which is the maligned hybrid model of 2D and 3D chipsets on a single card. It still uses the internal switching though. On this card the voltage issues are the opposite, the 2D output is significantly dimmer than the 3D which makes the 3D game clip badly when running something until the image is adjusted again.

These problems are voltage level issues with the signal, not gamma. Adjusting gamma will not change the black or white voltage level of the signal. But a lower voltage signal may seem brighter as gamma is raised and the dynamic range is compressed.

> we were so enthralled by the absolute performance of 3DFX that the color fidelity didn’t get as much attention as it should have.

I would say it's more likely that they just didn't notice and the varying outputs from different 3DFX cards, with different GENDAC's, on differently calibrated CRTs just made it a total mess to try and and dial in something as imperceptible as a gamma level. Also keep in mind that around 1995-1996 adjusting the brightness of a CRT was as easy as twisting a few knobs on the front of it.

herodoturtle 3 days ago |

It's pretty cool that someone can ask an interesting graphics-related question, and John Carmack of all people steps in to answer it. And then even Eric S. Raymond adds a comment further below.

Dwedit 3 days ago |

You might have heard about sRGB (the commonly used colorspace) not being linear, and that to get halfway between black and white (linear RGB of 50%), you get an sRGB value of around 74%.

But there is one place where sRGB is truly linear, and that is signal voltage for a CRT display. 50% of sRGB truly means 50% of signal voltage (between the minimum and maximum voltages).

tannhaeuser 3 days ago |

Hard to believe, but Nvidia, founded by former SGI engineers, was considered an entrepreneur and challenger of 3dfx, the dominant pioneer in PC 3D hardware 30 years ago.

Edit: see comments re founders

hmstx 3 days ago |

One other aspect of 3dfx looking a bit washed out beyond the gamma problem is the trickery performed in the RAMDAC before it blasted those cool pixels to the VGA port.

If you remember, 3dfx screenshots were just as dithered as, say, an ATI Rage, but on screen it looked smoother (although a bit blurry) while the others looked visibly dithered still (see some 3dfx screenshots https://www.vogons.org/viewtopic.php?f=46&t=36548 )

Part of it is the gamma shenanigans mentioned, and also the blur filtering pass taking place in the DAC which "upgrades" the image (eventually claimed to be so-called 22 bit precision for Voodoo3), introducing some quite visible smudging and hints of unexpected colors as a result.

This has been approximated in shaders you can apply to most games with ReShade etc., take a look (https://www.vogons.org/viewtopic.php?t=36470)

dcrazy 3 days ago |

I remember watching John document his education about linear color blending on Twitter. I believe it was when he was adding HDR to Rage. It was amazing to me that he had had such a blind spot for so long.

cmovq 3 days ago |

These days you just author your textures in sRGB, convert them to linear when they’re read, do all the filtering and lighting in linear space and convert the final render target to sRGB (or HDR). Of course this was much more difficult back then with fixed function hardware

threeeeed 3 days ago |

One compounding issue that the article is missing is that alpha blending was not performed in the correct color space on voodoo cards, was not gamma correct. This also contributed to the washed out effect.

stateoff 3 days ago |

Good read on the topic is Charles Poynton site and books, e.g. https://www.poynton.ca/pdf/GammaFAQ.pdf

rasz 3 days ago |

In numbers:

VGA default gamma y = 1 aka linear

3DFX default gamma y = 1.5

You might, like I did, think wtf is he talking about, default is linear and 3dfx bends it. But CRT monitors y = 2.2! When added up (multiply exponents) 3dfx is closer to linear output than ordinary VGA. You would still have to set 3dfx to 2.2 to get perfect linear output.

TLDR: Carmack is partially right. As he says even game developers were clueless. Nobody had to change their workflows. You could call glide grGammaCorrectionValue or even easier set DOS environment variable SST_GAMMA to 1 to get Exact same color mapping as ordinary VGA.

Why did 3dfx boost that? deffo not to get linear output, if they wanted linear they would set 2.2. Probably a Color twist on loudness war, brighter better, or maybe felt bad half the bits would get wasted (crushed into near blacks) in 16bit rendering.

vessenes 3 days ago |

I'm so curious what John's AI startup is doing. I got to talk to him briefly right when he was launching, and I was excited to hear about what he's building. John, any recent updates?

nullc 3 days ago |

A lot of people today trying to 'be correct' and resample in linear space end up getting worse results either because of introducing banding from quarantining back to 8-bits or because the non-linear space resampling often happens to do something closer to the right thing thanks to human contrast-sensitivity function.

Cloudef 3 days ago |

Is there repost that's not on that garbage site?

bni 3 days ago |

I had a Nvidia RIVA 128 card before I bought a Voodoo 2 instead.

The Riva came with the OEM PC I got. I remember HL2 looked very washed out on it and being quite unhappy with that. Funny that the 3dfx "solved" it for me.

doe88 3 days ago |

Carmack answering a question of Sanglard, you might as well train a model just on their chats :)

basilgohar 3 days ago |

I thought this was going to be about how 3dfx cards rendered only 16 bit color, but I was surprised that this was actually about a hardware issue. Interesting!

anal_reactor 3 days ago |

A bit tangential, but in modern games with HDR I still get the fucking banding of dark colors.

Someone enlighten me what HDR actually does then.

gwbas1c 3 days ago |

> If you only have a small number of discrete pixel values, you definitely don’t want to spread them evenly from 0 to 1! If you do, you will have good precision in the brights, but very stark “intensity bands” in the dark colors.

That's probably why streaming video has so much banding in dark streams too.

hmstx 3 days ago |

On low precision in darker colors being a function of gamma...

There were issues in Quake/Quake 2 with bright areas not being quite right, so some measures were taken to try and achieve some form of overbright lighting [1]. Especially in Q1 where the light baking did not perform bounces/radiosity, there were a lot of black spots with adjacent highlights for dramatic effect, and you could see some banding there with the OpenGL renderers, which is more apparent with lower texture settings and pumped gamma.

But also, as a side effect of this overbright ability, lighting got flattened even more in GL [1]:

>The original quake (software) engine used overbright lighting, which means the lightmap brightness can go up to 200%. So, light.exe creates BSP files with lightmaps that go up to 200%.

>In glquake […] there is no overbright lighting, so every part of the lightmap that goes above 100% is flattened to equal 100%. This is why glquake looks just fine in darker rooms, but in bright areas the lighting looks very flat.

>[Some engines] restore the overbright feature of the software renderer, so that lighting hot-spots will actually be as bright as intended.

A similar effect was pursued further in Quake 3 with r_overbrightbits/r_mapoverbrightbits, which fakes a higher dynamic range through futzing with the hardware gamma ramp and bit-shifting/normalizing color channels [2], achieving highlights that pop a lot more... at the expense of introducing even more banding in dark spots.

He mentioned it in passing in a .plan in 2000 that touches on higher precision buffers [3]:

>Q3 hacks the gamma tables to sacrifice a bit of precision to get a 0.0 to 2.0 range, but I wanted more than that for even primitive rendering techniques.

Eventually, in his .plan dated january 29th, 2003 [4] he appears convinced,

>The future is in floating point framebuffers. One of the most noticeable thing this will get you without fundamental algorithm changes is the ability to use a correct display gamma ramp without destroying the dark color precision.

[1] https://www.quaddicted.com/engines/software_vs_glquake

[2] You can probably read the C/OpenGL code better :)

[3] https://github.com/ESWAT/john-carmack-plan-archive/blob/mast...

[4] https://github.com/ESWAT/john-carmack-plan-archive/blob/mast...

cyberax 3 days ago |

Another interesting question: I remember getting a 3D accelerator (some Riva card?) and getting surprised how everything started looking reddish in Quake 2, compared to software rendering.

Does anyone know the reason for that?

contingencies 3 days ago |

It's time to kick ass and render color. And I'm all outta color.

Spalau 3 days ago |

Although I never saw Quake on a 3dfx card, it has a recognizable "style." I like that style in modern user-made maps, some of which are entire games with multiple levels.

I always thought the style was an artistic choice rather than a technical limitation.

Now I understand that a lot of old graphics "styles" were restricted by the existing hardware.

arthur_steel 3 days ago |

[flagged]

benchnotes 3 days ago |

[dead]

indubioproIO 3 days ago |

[dead]

Luke2642 3 days ago |

I dream of a parallel timeline when OKLAB became the standard colourspace in 1980! It's a very colourful dream, the lightness stays consistent as the hues change, and colour interpolation just works!