
As is said, this is an attempt to follow ssloy
's tinyrenderer course (older version here) but without stepping half a foot outside GNU bash & ANSI escape sequences. And as seen from the state of this repo - it's... not really going too well.
No AI/vibe coding was used. This bad idea is 100% birth from a human, start to finish.
Once again, good question.
The "canvas" initialization and pixel drawing was handled by my bash-graphics
scripts. Basically it uses ANSI escape sequences to change the printing cursor's position and colors (foreground and background). It then prints a ▀
character, which with both the fg and bg being changable represents 2 vertcally stacked pixels.
-
obj
parser - Rest of course
- Rest of course, but 100% integer math
- o p t i m i z a t i o n s
- Bresenham’s line drawing
- Homework:
obj
wireframe rendering
- Homework:
- Triangle rasterization
- Barycentric coordinates
- Hidden faces removal
- Naive camera handling
- Better camera