2006-09-05

How to Create an Aerial Panorama from Google Earth

Peter Murphy (one of the leading lights in the panoramic world) sent us a email on Monday with the thought of creating panoramas from a Digital Earth. The concept is simple - grab a series of screen shots while rotating above the earth and then stitch the images as if they were normal photographs.

A day is a long time in Internet based tutorials and this is now an update of the original as a result of Gaby, a digital urban reader, writing a kmz tool to dramatically simplify the process of capturing screen shots. The whole process should take approximately 40 minutes.

The first step is to go to GabysKmz Panorama Capture Tool and type in the Lat/Long of the location you want to capture - in our case above the Millennium Dome in London.

To create panoramas it is important to rotate the camera around the nodal point of the lens in order to minimise any parallax error as the scene is captured. Previous to Gaby's tool the best way was to use the 'Flight Simulator Mode' by clicking 'Ctrl-G'. Combining this with a 'left mouse click and drag' action you can look around the scene and thus simulate a panoramic camera.

You can now simply load up the kmz file which is output from your Lat/Long co-ordinates and a series of placemarks are presented in the Google Earth, each representing camera locations. Select each placemark and wait for the streaming in Google Earth to reach 100%, now use File - 'Save Image' and call your image image1.jpg. Go through this for each placemark and you should end up with 28 images, each saved in sequence - ie image 1.jpg to image 29.jpg.

Once you have your numbered screengrabs you now need to stitch them, we used Stitcher from RealViz, you can download a trial version from the RealViz website. If you are a PTGui user we have created a Template to automatically stitch your images. Download the Template and follow these steps:

1) Open PTGui and click Select Source Images - Navigate to where you saved your screengrabs and select all of them.

3) Click File 'Apply Template' and select the location of the GoogleEarthTemplate.pts saved from above.

Your images will now automatically align, you can now complete the process by selecting the 'Advanced' button in the top right hand side of PTGui and then 'Create Panorama'. Save your panorama as a Tif, we normally output at 6000x3000 pixels. Advanced users of PTGui can add their own Control Points and stitch as normal, lens parameters should be 30mm Rectilinear.

To stitch the images you can also use the AutoStitch feature of RealViz to simply load in the images and automatically create a panorama. It should be noted that the curve of the earth will not stitch perfectly due to parallax error resulting from the Flight Simulator mode of Google Earth, the image left illustrates this (click for a larger version).

Fixing the parallax's error is simply a case of slightly cropping off the top of the resulting panorama to give us the image as below, this applies to both PTGui and RealvizStitcher outputs:

As Google Earth doesn't include clouds we can now add them in as a new layer in photoshop. We used a panoramic image of clouds from TurboSquid, these used to be free but are now $5 each. If you don't have a cloud panorama then you can always create your own using Terragen, there is a great tutorial on how to do this here.

Adding the clouds gives you the final panorama over London (click for a larger view) :

Changing the projection of the resulting image allows a number of views such a hyperbolic image of London from Google Earth:

Finally to create a Quicktime Virtual Reality scene from the image - so you can look around the panorama - download Pano2QTVR.

Of note in the final scene is how the Google copyright crops up in various places in the image. This is due to each screengrab containing the Google overlay and depending on the overlaps some are automatically blended out in RealViz and some remain... *update - using PTGui all copyright seems to be removed, this opens up the question on the legality of creating panoramas? *

After several tries with the flight simulator mode, I've made a small program that generates a kml with all views needed.You just have to input lat, lon and pov altitude.URL : http://tracks.landais.org/panokml.phpSource :http://tracks.landais.org/panokml.phps

1) i get 29 images from the (brilliant) script. should i not be using the one from "circle 0"?

2) your images seem to be horizontal in nature. mine come out square. might this be because i am on a mac?

3) when i do "save images" i am presented with a number of choices (i have the pro version) should it be "screen capture only" or one of the higher resolution images? does this relate to my previous question?

4) for creating the QTVR pano, has anybody out there tried to do it with VRWorx? any success?

Does anyone else have a problem with the lat and the long. When I get the coordinates from GE and the enter these into Gabys Script and then click on the circle O placemark one I go to another location a long way from the location I want to see.

I must be doing something wrong, can someone give me a lat long that has worked I have tried entering the lat long in varies formats none work.

Hi Gaby, can you reactivate the Panorama Capture Tool? It is a great tool, but now it doesn't work : The resultant pano.kml corresponds to another place ??. What do I have to do to postion myslef in the place wished..Thank you.

And here's another one:http://tinyurl.com/ypwwe6Above the beautiful city of Mechelen, Belgium.Thank you very much for this tutorial. For some reason, the template didn't work out, but i managed to stitch things together manually.

Thanks for the great post. As others have pointed out, the current version of the panokml script provides 41 sets of coordinates.

Thankfully, Archive.org has retained a copy of the older, 29 image script. You can find it at by heading on over to http://www.archive.org/, and searching for 'http://tracks.landais.org/panokml.phps'. Choose the Feb 21st mirror.

Of course this means you need a PHP enabled web-server, but finding a free host if you do not own one should be fairly easy.

" Previous to Gaby's tool the best way was to use the 'Flight Simulator Mode' by clicking 'Ctrl-G'. Combining this with a 'left mouse click and drag' action you can look around the scene and thus simulate a panoramic camera."

I think that instead of the above, you can use CTRL+cursor buttons to rotate around the focal point. Press ALT, too, and the rotation will be slower. All this for manual camera positioning.