ReePrime
I Accidentally Wrote a 3D Renderer... And Compiler... for Scratch

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

I Accidentally Wrote a 3D Renderer... And Compiler... for Scratch

V
ViviansUsername

0 Views • Dec 21, 2025

Description

I tried to make something small... ended up writing a 3D renderer in scratch. And a compiler.

Run it yourself on turbowarp, here: https://turbowarp.org/1205925057/fullscreen?hqpen

This is my first crack at a 3D renderer, and it's in *scratch* of all languages, so I ran into a bit of a wall. I'll have to make one elsewhere before I can do a *decent* job in scratch, and well.. yeah I'm probably not coming back to scratch to make my third 3D renderer.

It's entirely lacking culling, UV's, textures, *colors at all* even. But it's made of legos and it goes brrrrr

Tosh: https://tosh.blob.codes/
Channel I recommended that did the same project but earlier and better: https://www.youtube.com/@Randmguy48
His triangle drawing video that goes into the rasterization steps that I glossed over: https://www.youtube.com/watch?v=LliaVE5i15w

0:00 The flashy parts
1:05 Early versions
3:20 Compiler talk
5:10 closing

THE COMPILER IS IN PYTHON, NOT SCRATCH

original upload on youtube (but also screw them): https://www.youtube.com/watch?v=1F6nBiwfkKk