4 ms·
I had no idea these machines existed. When tasked with writing a ray tracer way back in college, the first thing I did was create a scene description format bas
by eddieh 5y ago
I had no idea these machines existed. When tasked with writing a ray tracer way back in college, the first thing I did was create a scene description format based on S-expressions. Yesterday I was nostalgically looking at backups of the assignment and found my first scene file:
(camera 0 0 -20)
; red sphere
(sphere 0 1 50 5 (material (color 255 127 127) 0.8 0.8))
; green sphere
(sphere -20 1 200 9 (material (color 127 255 127) 0.8 0.8))
(plane 0 1 0 20 (material (color 127 127 255) 0.8 0.8))
I went so far as to make the scenes scriptable with Guile. I had another scene that procedurally generated spheres positioned about a helix, but that seems to be lost to the bit gods.
To me, there's something very natural about using S-expressions to create graphics. I wish there was a video (with a high enough resolution) that shows the Lisp interactions—especially in the subdivision modeler.