Posted: . At: 7:56 AM. This was 2 years ago. Post ID: 16639
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


An amazing example of obfuscated code and a very slim C++ program.


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.

The final generated file from this code.
The final generated file from this code.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.