287 points · by mfiguiere · 1w ago · 114 comments
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.
or some register poking after startup, e.g. https://github.com/RetroLoom/S3ctl
That has never once in his life stopped him.
https://nitter.netbub.com/esrtweet/status/185702046923013338...
That is one way to bury yourself into irrelevancy.
I see he's become a Jensen Huang truther.
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).
https://en.wikipedia.org/wiki/SRGB#Transfer_function_(%22gam...
Edit: see comments re founders
- Nvidia only started CUDA when the Nvidia/AMD (initially Nvidia/ATI) duopoly was already well established.
- The applications for CUDA are less consumer-oriented than the applications for 3dfx's Glide: if you want to publish a game, you care about it running on all graphics cards on the market; while the stuff CUDA was and is used for is usually done by bigger players, who don't have to care about this type of compatibility.
The panelists talk about the lead-up to forming the company (their time at SGI) and the downfall of the company (competing with board manufacturers being a major influence).
The also recorded a Jensen Huang oral history but I haven't gotten a chance to listen to it yet so I can't speak to how interesting it is: https://www.youtube.com/watch?v=0c8i4T9BSqY
Is that accurate? I saw some content about how Microsoft, Rick Beluzo and Jensen engineered the internal implosion of SGI and transfer of IP to Nvidia.
Now, imaging if NVIDIA make a titanium laptop.
As far as I'm concerned, the moment DGXOS appears on a viable laptop, I'm dumping Apple entirely.
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)
Where he does focus, though, he goes incredibly deep.
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.
Which by itself isn't the worst, if you have a 24-bit framebuffer and sRGB read conversion. Without read conversion and going from 565 textures to 565 framebuffer with a 1.5 gamma... blecch. Checking the curves, the banding on the low end is worse than an Atari 2600!
I do agree with you on the quantisation issues when working in linear space without taking proper care, though.
I've found that resampling correctly often performs worse in a blind test, presumably due to these effects.
EDIT: I think there's a good point though that the game assets should be produced to the asset pipeline losslessly so that they can be transformed to the game's own internal colorspace(s) (depending what the renderer is doing, it can make sense to have multiple colorspaces for different calculations)
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.
so its possible that it runs hl2, it would be interesting to see if it does.
Someone enlighten me what HDR actually does then.
Because luminance ranges can differ drastically, converting media intended to be viewed on, say, a 3000nits display to a 1000nits display require other global transformations. HDR metadata standards are different parameterizations of different global transforms.
If you've ever experienced problems with HDR media it is because human perception is not actually global nor is it rooted in physics. We know from Retinex theory, the spatial dampening of the lateral geniculate nucleus, the Barten CSF, the Gelb effect, the 2022 Los Alamos paper on the non-Riemannian nature of color, etc. that the human visual system (HVS) cares about local spatio-temporal relationships more than it cares about global luminance. Because HDR pipelines are built on global transforms, they can actually have the effect of crushing the local differentials the HVS really cares about. There's a lot more to say on all of this, but that's the gist of it.
EDIT: For TV, HDR works well assuming you don't have cheap TV.
You need 10bpc/30bit color to fix that, not HDR. As sibling comments have said, HDR does "bright" basically. 10bpc splits those bands you're seeing into 4 (+2 bits), making them hopefully less visible.
(Unfortunately with 30bit/pixel, the alpha channel then needs to go somewhere else, which is a bit annoying particularly for games.)
That's probably why streaming video has so much banding in dark streams too.
Nobody said they didn't. We're talking about the why not the what. Video codecs badly mangle darks, sure, but not because they are in linear like 3dfx in this historical information nugget.
Does anyone know the reason for that?
The lightmaps and such support colored lighting, but by default the software renderer just used the max IIRC of the color channels as a monochrome light value.
Just for giggles I recently had Claude rewrite the software renderer for Quake 2 to support true-color output and so could enable `sw_colorlight 1` when using the software renderer. Doing so results in the same reddish tint as the GL renderer, but with the software renderer aesthetics.
I think you can set `sw_colorlight` to `1` even in the classic renderer, but it'll look quite bad due to the limited colors afforded by the 8-bit palette.
Makes sense I guess, the plot takes place on Mars, so perhaps that's why they went heavy on the red-orange.
edit: uploaded some screenshots to show the difference:
Classic SW with `sw_colorlight 1`: https://imglink.cc/cdn/fv5Z3WB_aS.jpg
True-color SW with `sw_colorlight 1`: https://imglink.cc/cdn/fx8prYfGs6.jpg
In OpenGL mode colored lighting is there. But map designers overused it too much, especially in outdoor locations having yellow sky lighting, which looks somewhat depressive.
True perspective-correct 3D texturing (as opposed to the fake 3D in the DOOM engine, or the affine texturing of the PSX) on a 90 Mhz Pentium CPU.
Sure, the resolution was low (I think we were still in 320x200?), but that still doesn't give a lot of clock cycles for each pixel. 320x200 at 30 fps is 1,920,000 pixels per second. At 90 Mhz, that's only about 45 clock cycles per pixel on an architecture that could take several clock cycles per instruction.
The software renderer didn't do colored lights, but it still did dynamic lights from rockets and grenades, IIRC.
EDIT: Just realized we were talking about Quake II, not the first Quake. Whatever, still impressive.
The surface-building inner loop is particular efficient, because it consists of nothing more than interpolating intensity, combining it with a texel and using the result to look up a lit texel color, and storing the results with a dword write every four texels. In assembly language, we've gotten this code down to 2.25 cycles per lit texel in Quake. Similarly, the texture-mapping inner loop, which overlaps an FDIV for floating-point perspective correction with integer pixel drawing in 16-pixel bursts, has been squeezed down to 7.5 cycles per pixel on a Pentium, so the combined inner loop times for building and drawing a surface is roughly in the neighborhood of 10 cycles per pixel.
Half-Life 1 could also do colored lighting in software, the software-rendered and accelerated versions looked almost identical aside from the texture filtering.
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...
For young'uns: https://en.wikipedia.org/wiki/Duke_Nukem_3D + https://en.wikipedia.org/wiki/3dfx#Entry_to_the_consumer_mar...
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.
[0] https://eng.aurelienpierre.com/2022/02/color-saturation-cont...
[1] https://ansel.photos/en/news/color-controls-finally-correct/... (Issue caused by the DT UCS 2022 colour space, which is based on OKLab.)
[2] https://en.wikipedia.org/wiki/Helmholtz%E2%80%93Kohlrausch_e...
I had a good read of the Ansel site, it's very thorough.
I better not share my fantasy of an alternative timeline where C exposed system ram differently to on-chip sram. Decades of different optimizations and tradeoffs might have unfolded. Don't dare to dream!
It’s bad enough that monitors do not produce colour accuracy, or to the full gamut.
Honestly, it’s the one thing Apple got right. Everyone in the creative industry runs Apple, and Apple had a consistency with color. Good luck getting your stuff approved if you produced it on Windows.
Our eyes are simply more sensitive to yellowish green. Any reasonable tech will have a gamut that is tented towards green.
And at least with current technology we are not at a point where sacrificing resolution or brightness for more coverage of the green end of the gamut is a wortwhile tradeoff.