HackerTube.dev

I wrote a Raytracer for DOS, 16 VGA colors

Bisqwit · 905.1K views · 2011-05-24 · 15:00

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

Bisqwit writes a raytracer from scratch in C++ for DOS, rendering in the 16-color VGA palette at 640x480. The video also covers color quantization and ordered dithering.

On Hacker News

HN fans praise Bisqwit as a favorite programming YouTuber and this video as an excellent look at dithering.

Recommended by 2 HN people across 2 months · HN mentions 2019–2021

Topics

Search by tags

What people said

pdkl95 · 2021-01 · Strong recommendation

Bisqwit's discussion of dithering is outstanding . He presents a very impressive algorithm for arbitrary-palette dithering that is animation safe . > This paper introduces a patent-free positional (ordered) dithering algorithm that is applicable for arbitrary palettes. Such dithering algorithm can be used to change truecolor animations into paletted ones, while maximally avoiding unintended jitter arising from dithering. He demonstrates it "live coding" style in this[1] video where he writes a demo in 256 colors of a "starfield" animation with color blending and Gaussian blur style bloom. The first animation at 6:33 using traditional ordered dithering has the usual annoying artifacts. The animation at 13:00 using an optimal palette and his "gamma-aware Knoll-Yliluom positional dithering" changed my understanding of what was possible with a 256 color palette. The animation even looks decent[2] dithered all the way down to a 16 color palette! If that wasn't crazy enough, he also "live codes" a raytracer[3] in DOS that "renders in 16-color VGA palette at 640x480 resolution." [1] [LINK] [2] [LINK] [3] [VIDEO]

Read the original HN comment ↗
petercooper · 2019-01 · Strong recommendation

Agreed. My favourite programming YouTuber by a long stretch. If anyone is unfamiliar with him and wants to watch some of the "classics" I'd recommend these: His "cracking videogame passwords" series: [LINK] Creating a Doom-style 3D engine in C: [LINK] Creating a Rogue-like game in C++11: [LINK] Creating a PIC16 emulator and NES music player: [LINK] Creating a NES emulator: [LINK] Creating a DOS VGA raytracer: [VIDEO]

Read the original HN comment ↗
themodelplumber · 2019-02 · Reference

Wow that's really cool. I liked the structure you added to the Martian landscape. It was funny to wake up and see this on HN, as I was watching something DOS and 3D-related on Bisqwit's channel last night. [VIDEO]

Read the original HN comment ↗

Sources

Video by Bisqwit, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources