Make Stellarium panoramas from Google Earth
If you cannot create an on-site panorama photograph, the next best thing is creating an artificial horizon ("landscape" in Stellarium's terminology). Here is how to:
- Startup Google Earth. In the options dialog, set display of coordinates in decimal degrees mode.
- Find your spot of interest. Enter the displayed coordinates (enter all displayed digits!) in the form below. In the Alt field, use the ground height displayed plus your eye height above ground, i.e. the value entered must be absolute altitude above sea level. If altitude is below ground, the result will be unusable (collision blocked by GE).
- Download the KML file, store it in your <STELLARIUM-USERDATA>\landscapes\<newsite>\pano.kml.
- Open in Google Earth. You will find a folder of snapshots. The scenes have names like 75-210, which means nadir distance 75 degrees, azimuth 210 (counted from North).
- Call each scene to display, save still image with the same name, as JPG.
- Use Hugin to combine the images. After selecting all images to load, enter horizontal field of view (FOV) of 60 degrees.
Instead of combining with the use of image features, you can directly set the angles from the filenames into the respective fields: pitch=-90+firstNum, yaw=secondNum. Crop away the navigational aids (right/bottom edges). Save the combined image as equirectangular panorama, 4096x2048 pixels.
- Use Gimp or Photoshop to mask the blue sky and make it transparent, save as PNG. If your computer is "lightweight" in graphics capabilities, you may want to rescale to 2048x1024.
- Write a landscape.ini (double-click the pano group in Google Earth, copy-paste the text to landscape.ini)
Notes
- If your interest is a view out of a 3D building from the 3D Buildings layer, note: the near clipping plane may cut away foreground architecture. There is no solution :-(.
- If you want to use scenery3D, configure your pano as if exporting with the 3D Buildings layer (i.e., use an eyepoint high enough over ground to be above the additional terrain socket, if any), but export the images with the 3D Buildings layer switched off. Use this as background landscape in your scenery3d.ini.
- Note that the SRTM DSM tends to smoothen sharp mountains, so don't blindly trust the near horizon, it could be higher, the terrain could be steeper!
The images displayed are (c) Google, so the created panoramas are for personal use only!
I have found a similar script somewhere, but without author note who deserves most credits. Extended in 2013 by Georg.Zotti (at) univie.ac.at