Shooting began in July 1968 in Los Angeles, much of it on location in the wider southern downtown area. Exteriors of the art deco Richfield Tower were shown in a few scenes shot shortly before its demolition in November of that year. Various college campus scenes, excluding the scene of the student meeting, were filmed on location at Contra Costa Community College in San Pablo, California. The production then moved to location shooting at Carefree, Arizona, near Phoenix and from there to Death Valley. The production rented a mansion in Carefree and built a replica of it on the lot of Southwestern Studio in Carefree for the special effect of blowing it up. Location shooting also took place in the Mojave Desert.