Raspberry pi 5

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 and double buffer.

21 Dic 

Why stopping at a cube? 

Added code to render the Utah teapot.

https://github.com/marianodominguez/samples/blob/master/cprog/allegro_pi/src/teapot_01.c


22- 23 Dic

working on several strategies to interpolate the model, First tried linear interpolation in the triangle. however this is not generating the right subdivision.



23-25 Dic

Still working on crazier and crazier approaches.

Tried to use parallelograms, but there is no easy way to delimit them:

And they tend to get out of the triangle, giving unexpected results

26-28 Dic.

Tried to get perspective projection instead of isometric, but not too much success, decided to stay with isometric.



29-31 Dic. Working with Bezier curves. Although I did not get too much working code. Learned a lot.

After dealing with a lot of problems with the triangulated model, decided to use the original 4x4 Bezier patch data:

And now I have a nice interpolation