The following proyect was made as a homework for my Embeded System's Design class. It is supposed to be a molecule of silicon- fully rendered using Raytracing and with no external libraries.
The only library used was stb image, which is only used to write the image buffer directly to PNG. The resulting GIF can be created using ffmpeg:
$ ffmpeg -framerate 30 -i %d.png -i palette.png -lavfi "paletteuse" output.gif- Having cmake installed, create a build directory and configure the project.
$ mkdir build
$ cd build
$ cmake ..- Use make to build the project.
$ make- Enjoy! You can execute the program using:
$ ./siliconrayNOTE: The following project was only tested on Linux (x86_64). However it could possibly run on Windows and OS-X given the correct tools are installed.