By January 16, 2012, filming moved to Los Angeles and southern California, including the Wadsworth Theatre. Filming had concluded by March 13, 2012, after forty-nine days. When Scardino boarded the project, the script contained several magic tricks that could not realistically occur on stage such as lasers decapitating two individuals and the heads then switching bodies, which would have required the use of computer visual effects to accomplish. Scardino insisted that most of the magic tricks should be credible feats to make the magicians seem more believable, but some tricks still required the use of visual effects. David Copperfield served as a technical advisor on the film and developed a live stage illusion for the film's climax, featuring a body switch between Carell's and Buscemi's characters. Scardino insisted that the illusion should not depend on camera tricks, stating "I wanted one big stage illusion where you go, 'Oh, wow, how'd they do that?'" Copperfield provided instructions on how the trick worked and was present on set during its filming. The production also used other magic advisors who ensured that hand movements during tricks were correct, and also served as hand-doubles. Producer Chris Bender said that the film is meant to be set in a fictional history of the world of magic, and so the filmmakers avoided casting many real magicians, so that it would not seem that the film was intended to be set in reality.
