Skip to content

a1k0n/asciitracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

58df9a2 · Feb 3, 2021

History

32 Commits
Mar 5, 2014
Oct 23, 2015
Feb 3, 2021
Oct 11, 2012
Mar 5, 2014
Oct 11, 2012
Oct 8, 2012
Mar 11, 2014
Oct 11, 2012
Oct 12, 2012
Oct 9, 2012
Oct 9, 2012

Repository files navigation

Sphere tracing, rendered in ASCII (well, VT100/ANSI terminal emulation really)

Example

spotify logo preview

This is basically the ASCII equivalent of a basic Shadertoy raymarching demo.

Steps to Compile

cmake .
make

Notes

There are a couple demos in here, one which has a bunch of random objects on top of a checkerboard with the light positioned at the camera, and another one which renders the Square logo (since it was easy to represent with constructive solid geometry, and some of my friends work at Square).

It's pretty slow and unoptimized. I plan on using this technique on a more elaborate obfuscated C demo someday but until then, this is a sandbox for experiments.

There is also my own webgl/glsl sphere tracing sandbox in webgl.html.