I was watching Bisqwits videos on 3d rendering, and I have dabbled in similar experiences. See my Doom in Python project.
Recently I have been doing a lot of C and NCurses for a roguelike game and decided I wanted to put his 3D rasterization work into NCurses for fun.
Of course colors is a trick unless you compile NCurses with 256 colors, so it will be limited to main colors with ascii characters to shade it.
This stage of the work just does scanline rendering of a generalized triangle struct. It plots with move
and addch
.
$ gcc main_rasterize_triangle.c -lncurses && ./a.out\