Automatic synthesis of skeletal animation