All Posts

Check out all my posts:

FABRIK Algorithm (2D)

The FABRIK algorithm is an amazingly clever solution to the Inverse Kinematics problem – how to adjust the joints of an arm to reach a target location.

In this tutorial, I go over how the core algorithm works in 2D, building up from simple concepts.

Read More


This Isn’t Normal

“That’s just the way it is!”

It amazes me how easily bad ideas fool humans.

Read More


Super Trump Run

I’ve been depressed lately. I decided to make a game to make me laugh and vent some steam. Enjoy!

Read More


The Failure of Being Right

Doesn’t it feel great to be right?

Read More


NaN-Boxing

How do dynamically typed languages hold any data type in any value?

One way is NaN-Boxing. This technique crams a payload into a signaling NaN value.

Read More


Growing Through Pain

Watching the children around me growing up, I am always amazed at the amount of pain they are forced to deal with. Illness, uncertainty, divorce, frustration, powerlessness, death…

A child experiences such extreme amounts of pain on a daily basis.

Read More


Polygon Clipping (Part 2)

My previous polygon clipping tutorial dove into the Greiner-Hormann clipping algorithm. Unfortunately, this algorithm fails at common cases… so let’s revist the problem and try again.

The F. Martinez 2008 algorithm handles coincident edges (unlike Greiner-Hormann), but it still has some minor goofiness. Let’s solve this problem once and for all.

Read More


Polygon Clipping (Part 1)

Polygon clipping is an interesting problem: how do you intersect, union, or diff two polygons?

My first attempt was a failure:

Polygon Clipping - Part 1 (Greiner-Hormann)

So I researched and developed another algorithm, which handles every case:

Polygon Clipping - Part 2 (Modified F. Martinez 2008)

Read More


C Tricks

I update this document with different C tricks I come across that I find useful.

Maybe you’ll find some of these tricks useful too.

Read More


Tri-Color Garbage Collector

Garbage collectors can seem magical, but their essence is quite simple.

Here I discuss and walk through an experimental tri-color garbage collector written in C.

Read More

« Newer Page 6 of 8 Older »