I wrote a Raytracer for DOS, 16 VGA colors

Channel:Bisqwit · Length:15:00 · Published:2011-05-24 · Views:905256

Watch on YouTube

Summary

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.

Why HN recommends it

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

Bisqwit's discussion of dithering is outstanding — HN, 2021

C, C++, Rust, Go & systems languages · Demoscene & retrocomputing · Computer graphics & rendering

Subtitles (excerpt)

This is a custom text editor I created for this video. It has multiple visual modes. Here it emulates the Commodore 64 look just for fun. Let’s compile it! Hmm… Is it doing anything? Let me bring out a magnifying glass. Oh yeah… It is drawing tiny pixels. Very, very slow. If only there was a way to make it faster. Hmm… I know what. Let’s add more CPU cores. More cores! Many, many more cores. Maximum parellelism! It is now rendering thousands of pixels simultaneously, but maybe still a little too slow. I know what. *Slap* Enjoy!

On Hacker News

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 jitte… — pdkl95, 2021-01
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 V… — petercooper, 2019-01
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] — themodelplumber, 2019-02

Related videos