Model based tracking of articulated objects