Creating a Doom-style 3D engine in C

Channel:Bisqwit · Length:18:49 · Published:2015-01-19 · Views:991324

Watch on YouTube

Summary

Bisqwit builds a Doom or Duke Nukem 3D style software-rendered 3D engine in C from scratch, supporting non-Euclidean geometry. It covers vector rotation and portal rendering with sped-up, tool-assisted coding.

Why HN recommends it

A favorite on Ask HN lists of programming YouTube channels, praised for mind-blowing systems and graphics programming and a watchable coding style.

My favourite programming YouTuber by a long stretch. — HN, 2019

C, C++, Rust, Go & systems languages · Computer graphics & rendering · Game programming & engines

Subtitles (excerpt)

( clacking puzzle noises ) Shalom! How is life, family circumstances, and everything? Ah, that's nice. Anyway, ♪ ( begins action music ) In today's video I am going to show what it takes to create a Doom-style 3D engine from scratch. First, some important questions. Why in the classic PC game of Doom when you make a map, it requires a slow and expensive process of building a "BSP" before the map can be rendered in 3D, while in Duke Nukem 3D's BUILD, you can change the map and render it in real time? Why in Duke Nukem 3D it is possible to create multi-stair buildings and even non-Euclidean geometry, while in Doom it is not? First, let's brush up on some basic vector and perspective calculations. ♪ ( changes music to a calm theme ) Let's declare a wall, which is a line segment, with two ends. An X and Y coordinate for both ends. The player also has an X and Y coordinate, and an angle for where he is looking towards. Let's create some sample BASIC code for visualizing the world we just created. Sorry about using such an obsolete language, but I have found that in graphical programming, BASIC still makes for an excellent prototyping tool. And let's face it: Even if you have never programmed in BASIC, you can probably follow

On Hacker News

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: [VIDEO] 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 … — petercooper, 2019-01
Bisqwit's video focusing on systems and graphics programming are total gems. [LINK] Not particularly useful for web developers which is what most programmers are nowdays, they will still blow your mind though. [VIDEO] — iwakura, 2018-01
[LINK] is by far my favorite and I've spent many hours watching him. He does things like create a Doom-style engine from scratch: [VIDEO] .. create a NES emulator: [LINK] .. work back from a C++17 example to show why new C++ standards are needed: [LINK] .. and even building a Tetris clone in GW-BASIC: [LINK] .. Right now, he's doing a series on cracking 80s videogame passwords: [LINK] Sirajology … — petercooper, 2016-10
This is why I love bisqwit's videos on YouTube. He takes a middle ground between "typing it in" and pondered narration. The typing effect is sped up and faked and done at just the right speed to 'follow along' with his thought process. Example: [VIDEO] — petercooper, 2015-08
I'm a fan of Bisqwit: [LINK] Mostly because he does fun things that are outside of the kind of programming I usually do, so it helps me broaden my horizons a bit. One of my favourites is the video where he sets out to make a basic 3D game engine in C, but starts by prototyping it in Basic: [VIDEO] — rpeden, 2017-08

Related videos