Synthesizing and controling skeleton animation