Wayward Pines was executive produced by
Chad Hodge with
M. Night Shyamalan, Donald De Line, and Ashwin Rajan. The
pilot episode was written by Hodge and directed by Shyamalan. The series was officially picked up on May 13, 2013, with a ten-episode order. Filming took place between August 19, 2013, and February 14, 2014, in
Coquitlam,
Burnaby (interiors) and
Agassiz (exteriors), in
British Columbia. The plot of Crouch's first novel in the trilogy,
Pines (2012), is covered over the first five episodes of the TV series. The second and third novels,
Wayward (2013) and
The Last Town (2014), make up the remaining five episodes. After reading the source material, Shyamalan said of the project, "As long as everybody isn't dead, I'm in"—his "only rule" to secure his participation. He said that in the finale viewers would "see a window to that, but it also is a complete ending as it is." the show was effectively finished. However, on December 9, 2015, Fox renewed
Wayward Pines for a second season, to premiere in mid-2016, continuing the story using original material. Season two has a largely new main cast, with several lead actors from season one either not returning at all or appearing only as recurring characters in the second season. This is in part because a few actors—notably
Terrence Howard and
Juliette Lewis—committed to other projects in the time between the filming and the airing of Season One. ==Episodes==