r/GraphicsProgramming • u/Dr_King_Schultz__ • Jan 02 '26
3D rendering in the terminal from scratch
I discovered this wonderful explanation by tsoding on a simple maths formulae for 3D rendering.
I figured why not try it out in the terminal too, made from scratch :)
Edit: here's the repo
7
5
2
u/The_Northern_Light Jan 03 '26
is that torus not really a torus? something is wrong with it
1
u/ddrbnn Jan 04 '26
I think the weirdness you’re seeing is just FOV related
1
u/The_Northern_Light Jan 05 '26
Stop it on the frame where you’re looking at it edge on, it’s asymmetric
2
1
1
1
1
u/snigherfardimungus Jan 03 '26
If you pull your camera back a bit and narrow your view frustum, you'll get less perspective distortion.
1
4
u/DecentTip3381 Jan 02 '26
Neat!
I see \x1b ANSI escape codes in render.odin, so I'm guessing it isn't using Sixel, ReGIS, or Kitty for graphics.
Is this a 1000 with terminal and block text? (also Ghostty should support Kitty FYI).