20 - Dec
Ported the code to my Rpi 5. no need for optimizations. Using allegro primitives. it took me around 15 minutes, allegro for line routine and double buffer.Cube code
Cube code
working on several strategies to interpolate the model, First tried linear interpolation in the triangle. however this is not generating the right subdivision.
Still working on crazier and crazier approaches. Tried to use parallelograms, but there is no easy way to delimit them:
they tend to get out of the triangle, giving unexpected results
Tried to get perspective projection instead of isometric, but not too much success, decided to stay with isometric.
And now I have a nice interpolation
https://github.com/marianodominguez/3d_graphics_prog/blob/main/teapot/src/teapot_01.c