3 ms·
Mode X was cool. When I was 13, I had a hand-down IBM PS/2 with an actual VGA adapter (most PCs had a clone, not the original IBM hardware). I spent a day or t
by pavlov 12y ago
Mode X was cool. When I was 13, I had a hand-down IBM PS/2 with an actual VGA adapter (most PCs had a clone, not the original IBM hardware).
I spent a day or two basically putting random values in VGA registers, because I didn't understand what most of the values represented or how they interacted. By trial and error, I discovered a 320 x 600 mode with 256 colors that ran at 50Hz.
With that mode, I could make a fake truecolor image display program that presented 320 x 200 24-bit images: the trick was simply to draw red, green and blue on separate scanlines, and you could count on the CRT to have enough of an afterimage to blend them together.
It worked ok (at least on my 12" IBM-made CRT), and I was very proud to have created a truecolor mode on plain VGA. But then I tried it on a friend's clone PC with no luck.
- Sharlin 12y ago> With that mode, I could make a fake truecolor image display program that presented 320 x 200 24-bit images The classic PC demo "Unreal" from 1992 did something similar [1]. I believe they used Mode X at 320x400 or 320x480. [1] https://youtu.be/pLJhtefcoPE?t=5m31s https://youtu.be/pLJhtefcoPE?t=5m31s
- nitrogen 12y agoAnother interesting thing you could do with the VGA was use slight color deviations to get 256 shades of gray instead of 64 (the VGA had 6-bit DACs). So instead of incrementing red, green, and blue all at once in your palette entries, you would bump one channel at a time. Depending on the use case, it could look better to have the slight color variation than the harsh banding of only 64 shades of gray.