Much of the film was shot in the cities of London, Paris, Venice, Palmdale, California, Port St. Lucie, Florida, and Rio de Janeiro. The production team had considered India and Nepal as locations, but after scouting trips these were rejected as impractical to work into the script, particularly considering the time constraints. They decided on Rio de Janeiro relatively early on, a city that producer Albert R. Broccoli had visited on holiday, and a team was sent there in early 1978 to capture initial footage from the Carnival, which featured in the film.