Note: This is experimental code and not necessarily written for clarity. Building the package as-is will create three barely useful test programs, but creating actual applications using the tracking algorithms will require modifying the sources. This requires a working knowledge of C++, and understanding the underlying algorithms requires a solid foundation of 3D geometry and linear algebra. Consider yourselves warned. On the other hand, the package contains (parts of) a powerful library for 3D geometry, and a generic implementation of a Levenberg-Marquardt non-linear optimization algorithm with examples how to create optimizers for many classes of problems.
The tarball available for download below will expand into a WiiControllerTracking directory in the current directory. All downloadable files are tagged with their SHA1 checksums to protect against corruption and tampering.
Note: The tarball was updated on 03/09/2009 to compile again under the most recent versions of g++ (tested up to and including g++ 4.3.2). If your version of g++ is newer than that, your mileage may vary.