The motion capture tech that helped bring films like “Lord of the Rings” to life is helping postoperative patients with their recovery.