Get the latest tech news

Marching Events: What does iCalendar have to do with ray marching?


Recently I've been cursed blessed with the opportunity of implementing a library for operating on iCalendar files. If you haven't heard of them, you probably have - it's the format used to transfer e-mail RSVPs, to name a thing: Despite iCal's age - RFC 2245 is dated 1998, same as the Clinton-Lewinsky scandal - I think it's a Pretty Good Format™.

(yes, this blog is a proud user of the european date format - if you don't want to see yyyy-mm-dd's, please press alt-f4 and go back to boycotting bud light or something) You might think it sounds like a difficult kind of thing to implement, but it's actually quite straightforward - for instance the SDF of a sphere of radius=1 centered at xyz=(0,0,0) is just: This means that instead of implementing logic for all combinations of frequencies and parameters - as that spooky table from before suggests one might do - we can simply compose a couple of distance functions together.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Marching Events

Marching Events

Photo of iCalendar

iCalendar

Photo of ray marching

ray marching