Demo: Rotating Cube On the Homebrew CPU! @weirdboyjim
Demo: Rotating Cube On the Homebrew CPU!  @weirdboyjim
Uploaded February 2025 | Updated September 2026, 1 week ago
I had been hoping to write a decent rotating cube demo ever since I started to get a sense of how fast the cpu was. This is the result of about 3500 lines of custom assembler code and far more time than I want to think about. The end result was far nicer than I had any right to expect! This video is about 20 seconds of demo and 25 minutes of technical discussion on the what/how. Hope you enjoy!

0:00 The Cube!
0:20 Introduction
1:01 Resolution
2:02 Maths
3:03 Object-View Transform
4:48 Perspective Transform
5:49 Viewport Transform
6:42 Demo: Vertices
6:58 Timing
8:36 Line drawing
10:23 Demo: Edges
10:50 Back-Face Culling
13:21 Demo: Culling
13:45 Rasterization
14:56 Demo: Solid filled
16:34 Lighting
19:45 Demo: Lighting
20:06 Buffer Optimizations
21:33 Demo: 30 Fps!
22:12 Polish
22:49 Demo: Final!
23:07 Outro
23:30 Development progression
Demo: Rotating Cube On the Homebrew CPU!General Purpose Registers (2: Schematic and PCB Design) - Making an 8 Bit pipelined CPU - Part 26Stack (Push & Pop) - Making an 8 Bit pipelined CPU - Part 61GPIO over SPI over GPIO - IO from Scratch - Part 5Smart Track Vehicle DIY D2-1 KitSDS1202X-E Oscilloscope Unboxing And First TestAdding a 3rd Clock State - Making an 8 Bit pipelined CPU - Part 77DAC Test - VGA from Scratch - Part 10Polyphonic Sound - Audio from Scratch - Part 6ALU (11: Arithmetic) - Making an 8 Bit pipelined CPU - Part 42Hardware Scrolling - VGA from Scratch - Part 4Volume and ADSR - Audio from Scratch - Part 4
James Sharman |

Demo: Rotating Cube On the Homebrew CPU!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER