video thumbnail 50:09
Coding Adventure: Software Rasterizer

2025-05-30

[public] 322K views, 21.4K likes, dislikes audio only

4K

Let's try to turn some dot products into a 3D world!

Support my work (and get early access to new videos and projects)

https://www.patreon.com/SebastianLague

Source code:

Currently in early access for patrons (see link above). Will be available to everyone from 14 June.

Credits:

Music: https://raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/Rasterizer.txt

Raylib: https://github.com/raysan5/raylib

C# bindings: https://github.com/raylib-cs/raylib-cs

Visualizations made (mostly) with Shapes: https://acegikmo.com/shapes/

Chapters:

00:00 Intro

00:32 The First Image

02:39 Triangle Maths

05:36 Testing the Triangles

07:30 Reading a 3D Model

09:13 Orthographic Projection

10:20 Single-Axis Rotation

12:37 Back-Face Culling

13:42 Another Axis of Rotation

15:34 Perspective and Field of View

19:22 Monkey! (and the Depth Buffer)

25:30 Real-Time Rendering

26:31 Camera and View Space

31:22 Depth Bug

33:03 Textures

35:00 Directional Lighting

38:52 Boy and Fox

40:35 Near-Plane Clipping

43:49 Procedural Terrain

45:18 Some Quick Optimizations

46:32 Odds and Ends

48:40 Final Demo


Testing the Triangles
/youtube/video/yyJ-hdISgnw?t=336
Orthographic Projection
/youtube/video/yyJ-hdISgnw?t=553
Single-Axis Rotation
/youtube/video/yyJ-hdISgnw?t=620
Another Axis of Rotation
/youtube/video/yyJ-hdISgnw?t=822
Perspective and Field of View
/youtube/video/yyJ-hdISgnw?t=934
Monkey! (and the Depth Buffer)
/youtube/video/yyJ-hdISgnw?t=1162
Camera and View Space
/youtube/video/yyJ-hdISgnw?t=1591
Directional Lighting
/youtube/video/yyJ-hdISgnw?t=2100
Some Quick Optimizations
/youtube/video/yyJ-hdISgnw?t=2718
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
Coding Adventure: Ray Tracing 1,400,159 views
/youtube/video/Qz0KTGYJtUk
Coding Adventure: Portals 1,415,041 views
/youtube/video/cWpFZbjtSQg