This code I found is astounding. This is code from a business card used by Andrew Kensler. I initially found this on Quora, this is quite impressive, it uses a primitive light tracing method called “path tracing”. But it is only a tiny little program that can fit on a large business card. Impressive.
Build the program like this.
┌──(john㉿DESKTOP-PF01IEE)-[~/Documents] └─$ clang++ -o card -O3 tracer.c |
Then run it to generate the PPM format image.
┌──(john㉿DESKTOP-PF01IEE)-[~/Documents] └─$ ./card > cardme.ppm |
The resulting image is below. Absolutely fantastic programming skills. To generate a 3D-looking image with such simple code.