Principal photography started on September 29, 2015, and lasted for 59 days, ending in December of that year. Filming took place entirely in Australia. The film was based at Fox Studios in Sydney, after producers vigorously scouted for locations around the country. Filming took place mostly in the state of New South Wales — where Gibson spent much of his early years — in and around Sydney such as in Richmond, Bringelly, and Oran Park. Gibson moved to the state in July 2015, two months before filming began. The graveyard scene was shot at a set-constructed cemetery in Sydney's Centennial Park.
The grounds of Newington Armory at Sydney Olympic Park were used as Fort Jackson. Filming in Bringelly required the team to clear and deforest over 500 hectares of land, which evoked the ire of some environmentalists. However, the producers had complete approval and clearance to do so. Also conditions were imposed to replant and rehabilitate part of the land after filming ceased. According to Troy Grant, New South Wales' deputy premier and minister for the arts, the film brought 720 jobs and US$19 million to regional and rural New South Wales.