This thesis describes the development of a positional tracking library with 6 degrees of freedom (position and orientation). It works by projecting a randomized set of infrared dots on a wall or ceiling. A camera is then attached to the users head-mounted display or any other object that should be tracked (inside-out tracking). By matching the infrared dots captured by the camera with the reference pattern of the infrared dots that got projected on the wall/ceiling, the camera pose can be estimated.