<Li> Pietro Scalia--editor </Li> <Li> Harry Gregson - Williams--music composer </Li> <P> The Martian was directed by Scott and based on a screenplay by Drew Goddard that was adapted from Weir's 2011 novel of same name . 20th Century Fox optioned the novel in March 2013, and producer Simon Kinberg was attached to develop the novel into a film . The following May, Goddard entered negotiations with the studio to write and direct The Martian . Goddard wrote a screenplay for the film and Matt Damon expressed interest in starring under Goddard's direction . Goddard then pursued an opportunity to direct Sinister Six, a comic book film about a team of supervillains . Kinberg then brought the book to Scott's attention . In May 2014, Scott entered negotiations with the studio to direct the film with Damon cast as the film's stranded astronaut . Scott said he was attracted by the emphasis on science and thought a balance could be struck between entertainment and learning . Damon said he was attracted by the novel, the screenplay and the opportunity to work with Scott . Following Scott's commitment, the project picked up the pace and was quickly approved . Goddard has since expressed that he felt Scott made a much better film than he could have directed, telling Creative Screenwriting, "When it's Scott, collaboration is easy because I just revere him . Every day I would just look around and think,' Is that really Ridley Scott sitting there at the table? This is exciting!"' </P> <P> Korda Studios 26 kilometres (16 mi) west of Budapest, Hungary, in the wine - making village of Etyek was chosen for filming interior scenes of The Martian . It was favored for having one of the largest sound stages in the world . Filming began in Hungary on November 24, 2014 . Around 20 sets were constructed for the film, which was filmed with 3D cameras . Actual potatoes were grown in a sound stage next to the one used for filming . They were planted at different times so that different stages of growth could be shown in film scenes . A team of six people built 15 suits for the film . External scenes, some with Matt Damon, were filmed in Wadi Rum, a UNESCO world heritage site located in Jordan, over eight days in March 2015 . Wadi Rum had been used as a location for other films set on Mars, including Mission to Mars (2000), Red Planet (2000), and The Last Days on Mars (2013). Total filming time for the film lasted approximately 70 days . A special Mars rover model was built for the filming; the movie cast and team presented the rover model to Jordan in return for the hospitality they had received . The rover is now exhibited in Jordan's Royal Automobile Museum . </P>

Who dies at the end of the martian