Here's how the magic happens on the Planet of the Apes set.