Filming
The original script for "Heroes" was somewhat conceived as a way for production to make a single, inexpensive episode, which would take place almost entirely on the standing Stargate Command sets at The Bridge Studios. Frequent director of the series, Andy Mikita oversaw shooting, which was handled entirely by the show's smaller second unit of photography, filming over a far longer period than the usual seven days that was typically allocated to a single episode, again to keep costs low. Filming initially took place from late March until May; after it was decided that the episode would be expanded into two parts, the additional scenes were shot from May through August 2003. Mikita would later joke that "Heroes" was the episode where production just "wouldn't end" as it spanned such a long period.
A key consideration for director Andy Mikita and director of photography Andrew Wilson was the documentary that the show was centered around. Mikita wanted the documentary footage to hold up when presented alongside the show's regular 35 mm film, whilst having a clear disparity between the two. The show's producers liaised with Sony, who provided MPEG IMX video cameras, as well as a technician for free. Mikita decided to shoot as much documentary footage as he could, expanding upon his brief which had only called for certain parts and scenes to be covered. Careful consideration was taken by Mikita and Wilson to film and present the documentary footage in a way that was accurate of documentary filmmaking, using more obvious and imperfect camera focus pulls and reframing during scenes. Lighting the documentary interview scenes in an authentic way was also given particular care, using the sort of lighting arrangements typically found in documentary interviews, with the shots lit far more brightly than the often dark, high contrast cinematography the show usually relied upon. As both a further documentary filmmaking device and a running gag, when not being filmed by his documentary crew, Saul Rubinek's character of Emmett Bregman would often be scruffily presented, with Mikita trying to surround him in clutter in the corner of a room when conducting his interviews. In the finished edit of the documentary scenes, Bregman would then be smartly presented in a suit and tie, having obviously filmed his parts separate from the "real" interview.
Originally, all bar a single scene were dialog-heavy pieces taking place on the Stargate Command set. Mikita sought to keep the energy high and build drama by encouraging actors to talk over the top of each other where appropriate – something production would typically try to avoid for continuity editing. During filming the actors were given room to improvise lines, as was typical of the show. This included a scene between in the cafeteria where Teryl Rothery noticed Saul Rubinek had accidentally left his real wedding ring on leading her, as Fraiser, to ask about Bregman's marriage. In a scene in the infirmary, Mikita prompted Christopher Redman to "accidentally" knock Rubinek's character with the boom mic, which elicited a response from him. This continued into the subsequent scene, where Tobias Slezak's character then begins filming Bregman's attempts at flirting with Fraiser. Don S. Davis, who was vocal about how extraordinary he believed the script to be and found his scenes particularly difficult, became emotional during filming. Director Andy Mikita later commented that he believed that Davis's time serving in the United States Army had given him a far deeper, first-hand connection to the subjects being tackled in the show.
Prior to filming Bregman's passionate tirade against the Stargate Command personnel, a scene which would go on to be regarded by fans and the show's cast and crew as one of the episode's best moments, Saul Rubinek and Robert C. Cooper had a "heated" discussion in Rubinek's trailer. After keeping the crew waiting for some time, the two returned to set and Rubinek shot the scene, with Cooper later commenting that he felt like the rant was somewhat directed towards him.
Before being expanded, the episode's one scene filmed on location was in Broadview Park, Burnaby, involving Daniel and Fraiser aiding the injured member of SG-13. When the episode was expanded, the crew returned to this location for additional filming. Originally due to the time of year, the location was deciduous with leaves on the ground and bare trees, however due to the time that had passed, the location was now far more evergreen. As a result, the crew had to spend some time scorching the location, bringing in their own leaves to cover the ground to maintain continuity. During Dr. Fraiser's final moments, Michael Shanks as Daniel Jackson held onto Teryl Rothery's hand, although it could not be seen on screen. Rothery later commented that the fact they were filming out of sequence meant she was back on the Stargate set the following day after filming her death, which she felt made the experience of leaving the show somewhat easier.
After being developed into a two episode arc and requiring additional material, a number of new scenes were required. In order to accommodate the schedules of both the cast and production crew, as well as minimizing costs, a rural location outside Langley, British Columbia along the Canada–United States border was selected that could be used for both "Heroes" and another episode, "Birthright". The location was big enough that production could split into two crews operating simultaneously. The Stargate was erected on location, with Mikita shooting it from one angle and "Birthright" director Peter Woeste shooting the exact same gate, but from a different angle to give the impression that they were different worlds. The new scenes included SG-13, consisting of Simon Wells (Julius Chapple), Jake Bosworth (Christopher Pearce), Dave Dixon (Adam Baldwin) and Cameron Balinsky (David Lewis) coming through the Stargate and discovering the Ancient ruins, destroying a Goa'uld probe as well as Simon Wells being shot in the back. The most significant addition was the battle sequence involving SG-1 and other SG teams against the Goa'uld ground and spacecraft. The battle sequence included heavy use of gasoline mortar explosions to simulate attacking ships, so local residents were advised, as were US Customs, given the site's close proximity to the United States border. The main battle sequence was mostly shot in one large tracking shot, with four cameras rolling simultaneously.
Upon being added to the show, Robert Picardo had prior commitments coming up, meaning he would have to film all of his scenes as Richard Woolsey in a single day. The dialog heavy scenes were complicated by the fact that Cooper and Mikita wanted Woolsey to separately interrogate Samantha Carter, Daniel Jackson and Teal'c, but present it as one long take that would switch between the interrogatees as the camera panned round the room. To achieve the shot, Tapping, Shanks and Judge would position themselves out of shot and switch with each other as the camera moved around the room.