Github Stackoverflow Email

Software developer notes

The portable ray tracer, written in c.

First things first - source of tracer. The project was inspired by the embedded rasterizer of cbm80amiga. But ray tracer in my opinion has some benefits when it's executed under small devices (it requires less memory to represent scene, you don't need to triangulate surfaces). Also I like ray tracer for its minimalist nature - you can easily grasp concepts of computer graphics. Here is rendered scene which was run under "blue pill":

The ray tracer uses Phong reflection model to simulate lighting. For beginners I highly recommend Computer Graphics from Scratch: A Programmer's Introduction to 3D Rendering by Gabriel Gambetta. Polygons rendering (along with planes) was added to get more interesting scenes. In order to be more flexible API was made in OOP manner. All you have to do is just implement interfaces for graphical objects and initialize scene.

ST7735

C

STM32

About me

Hi! I am Alex, the author of this blog. Here are my technical (in the majority) thoughts and stories. I will be hoping that you find this site interesting and fun. Also you can feel free to contact me (support for comments will be added later).