logoalt Hacker News

cyberax • today at 5:27 AM • 4 replies • view on HN

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?


Replies

magicalhippo • today at 9:58 AM

From what I can gather it's mainly a holdover from Quake[1] and the limited colors afforded by an 8-bit palette.

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

[1]: https://quake.fandom.com/wiki/Colored_lightning

Panzerschrek • today at 8:16 AM

Quake II uses old 8-bit approach in its software rasterizer, which isn't capable of applying colored lighting. It's a shame, that no progress was made since original Quake. Half-Life (also derived from Quake) did better job and supports colored lighting in software mode.

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.

➕ show 1 reply
fredoralive • today at 7:26 AM

IIRC the software renderer in Quake 2 doesn't do coloured lighting.

nopurpose • today at 7:16 AM

I explained to myself at the time that it is because skybox light start to tint everything underneath it.