video thumbnail 50:09
Coding Adventure: Software Rasterizer

2025-05-30

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

channel thumbSebastian Lague
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:

https://github.com/SebLague/Software-Rasterizer

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


Intro
/youtube/video/yyJ-hdISgnw?t=0
The First Image
/youtube/video/yyJ-hdISgnw?t=32
Triangle Maths
/youtube/video/yyJ-hdISgnw?t=159
Testing the Triangles
/youtube/video/yyJ-hdISgnw?t=336
Reading a 3D Model
/youtube/video/yyJ-hdISgnw?t=450
Orthographic Projection
/youtube/video/yyJ-hdISgnw?t=553
Single-Axis Rotation
/youtube/video/yyJ-hdISgnw?t=620
Back-Face Culling
/youtube/video/yyJ-hdISgnw?t=757
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
Real-Time Rendering
/youtube/video/yyJ-hdISgnw?t=1530
Camera and View Space
/youtube/video/yyJ-hdISgnw?t=1591
Depth Bug
/youtube/video/yyJ-hdISgnw?t=1882
Textures
/youtube/video/yyJ-hdISgnw?t=1983
Directional Lighting
/youtube/video/yyJ-hdISgnw?t=2100
Boy and Fox
/youtube/video/yyJ-hdISgnw?t=2332
Near-Plane Clipping
/youtube/video/yyJ-hdISgnw?t=2435
Procedural Terrain
/youtube/video/yyJ-hdISgnw?t=2629
Some Quick Optimizations
/youtube/video/yyJ-hdISgnw?t=2718
Odds and Ends
/youtube/video/yyJ-hdISgnw?t=2792
Final Demo
/youtube/video/yyJ-hdISgnw?t=2920
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