HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

I wrote a Raytracer for DOS, 16 VGA colors

Bisqwit2 HN recommenders · recommended in 2 months, 2019-2021
YouTube
905K views · 15 years ago · tutorial · evergreen

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.

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

Computer graphics & renderingDemoscene & retrocomputingC, C++, Rust, Go & systems languages#raytracer#dithering#c++#dos#vga

3 comments from Hacker News

@pdkl952021 · in “Ditherpunk: The article I wish I had about monochrome image dithering”

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] ▶ this video

Strongly recommendsView on HN
@themodelplumber2019 · in “Show HN: E3Dos – A 3D engine I wrote when I was a teen”

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. ▶ this video

CitesView on HN
@petercooper2019 · in “Let’s Create a Speech Synthesizer in C++17 [video]”

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: ▶ this video

Strongly recommendsView on HN
Creating a Doom-style 3D engine in C18:50

Creating a Doom-style 3D engine in C

Bisqwit
991K views • 11 years ago
puls (256 bytes)0:43

puls (256 bytes)

JanRrrolaKadlec
36K views • 17 years ago
what did you do22:13

what did you do

Noodle
1.5M views • 11 months ago
CGA Graphics - Not as bad as you thought!11:27

CGA Graphics - Not as bad as you thought!

The 8-Bit Guy
2.4M views • 10 years ago
NVScene 2015 Session: How to Create Content with Signed Distance Functions (Johann Korndörfer)51:06

NVScene 2015 Session: How to Create Content with Signed Distance Functions (Johann Korndörfer)

NVScene
35K views • 11 years ago
Surface-Stable Fractal Dithering Explained21:46

Surface-Stable Fractal Dithering Explained

runevision
646K views • 1 year ago
I painted a Landscape with Mathematics42:00

I painted a Landscape with Mathematics

Inigo Quilez
812K views • 4 years ago
Sparse Voxel Octree (SVO) Demo by Jon Olick4:45

Sparse Voxel Octree (SVO) Demo by Jon Olick

Zelexi
191K views • 17 years ago
Refterm v2 - Resource usage, binary splat, glyph sizing, and more29:51

Refterm v2 - Resource usage, binary splat, glyph sizing, and more

Molly Rocket
68K views • 5 years ago
elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo)3:36

elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo)

Demoscene High-Quality Videos (Annikras)
317K views • 15 years ago
Raycasting engine in Factorio (vanilla 0.17) - Facto-RayO v1.013:09

Raycasting engine in Factorio (vanilla 0.17) - Facto-RayO v1.0

arrow in my gluteus maximus
1M views • 7 years ago
Atari's Quadrascan Explained20:57

Atari's Quadrascan Explained

Retro Game Mechanics Explained
239K views • 5 years ago
8 Bit & '8 Bitish' Graphics-Outside the Box1:25:34

8 Bit & '8 Bitish' Graphics-Outside the Box

GDC Festival of Gaming
568K views • 9 years ago
Sonic behind waterfall - RetroArch shader comparison1:15

Sonic behind waterfall - RetroArch shader comparison

PenguinWeirdness
30K views • 9 years ago
Shader Basics, Blending & Textures • Shaders for Game Devs [Part 1]3:53:11

Shader Basics, Blending & Textures • Shaders for Game Devs [Part 1]

Freya Holmér
1.9M views • 5 years ago
I made a NES emulator in 15 minutes15:04

I made a NES emulator in 15 minutes

Bisqwit
389K views • 14 years ago
NVIDIA RTX Real-Time Ray Tracing Tech Demo From Remedy Entertainment1:46

NVIDIA RTX Real-Time Ray Tracing Tech Demo From Remedy Entertainment

NVIDIA GeForce
497K views • 8 years ago
Rendering Tiny Glades With Entirely Too Much Ray Marching59:20

Rendering Tiny Glades With Entirely Too Much Ray Marching

Graphics Programming Conference
108K views • 1 year ago
I Tried Turning Games Into Text18:18

I Tried Turning Games Into Text

Acerola
571K views • 2 years ago
How I implemented MegaTextures on real Nintendo 64 hardware8:51

How I implemented MegaTextures on real Nintendo 64 hardware

James Lambert
398K views • 3 years ago