Creating a Doom-style 3D engine in C
Channel:Bisqwit · Length:18:49 · Published:2015-01-19 · Views:991324
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
- GET LAMP: The Text Adventure Documentary · Google TechTalks · 2:01:17
- I wrote a Raytracer for DOS, 16 VGA colors · Bisqwit · 15:00
- I made a NES emulator in 15 minutes · Bisqwit · 15:04
- Kylie Minogue - Come Into My World (Official Video) [Full HD Remastered] · Kylie Minogue · 4:15
- Jacob Collier Explains Music in 5 Levels of Difficulty ft. Herbie Hancock | WIRED · WIRED · 15:41
- Shakespeare: Original pronunciation (The Open University) · OpenLearn from The Open University · 10:22
- OpenAI's GPT-4 Discussion with Red Teamer Nathan Labenz and Erik Torenberg · Cognitive Revolution "How AI Changes Everything" · 1:22:57
- Bret Victor - Inventing on Principle · Rui Oliveira · 54:20
- The Beauty of Bézier Curves · Freya Holmér · 24:25
- The Continuity of Splines · Freya Holmér · 1:13:50
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo) · Demoscene High-Quality Videos (Annikras) · 3:36
- Overwatch Gameplay Architecture and Netcode · GDC Festival of Gaming · 1:04:03
- Painting a Character with Maths · Inigo Quilez · 24:46
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33