The guy doesn't supply any code, but he published these videos of n900 head tracking almost a year ago: http://johanneskuhlmann.de/projects/facedetect#videos In the first video, he could have made the head moving animation much smoother if he called me.