Atlas: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Added control keys as taken from the source)
(cleanup and update)
Line 1: Line 1:
[[Image:Atlas.jpg|thumb|270px|Map view of the San Francisco bay area]]
[[Image:Atlas.jpg|thumb|270px|Map view of the San Francisco bay area]]


''"Atlas aims to produce and display high quality charts of the world for users of FlightGear, an open source flight simulator. This is achieved through two main parts: The map creator (simply called Map) and the Atlas viewer."'' - [http://atlas.sourceforge.net Atlas website]  
''"Atlas aims to produce and display high quality charts of the World for users of FlightGear"'' - [http://atlas.sourceforge.net Atlas website]  


==Atlas Help==
===Introduction===
Firstly I would greatly thank TheBackMan who posted this on the Flightgear Forums. This is a slightly modified version. To see the original post click [http://www.flightgear.org/forums/viewtopic.php?p=3561 this link].
The '''Atlas''' program lets FlightGear users display a real-time "moving-map" of their flight. Atlas is an independent software project, distributed under the same free (GPL) software license as FlightGear.


===Install Atlas===
====Installing on Windows====
This should not be a problem but I messed up my FlightGear when I installed the default way so lets stay on the safe side...
To install Atlas on Windows, download the "installer" version of Atlas from the [http://atlas.sourceforge.net/index.php?page=download Download Page]


# Download Atlas Package from here the [http://atlas.sourceforge.net/index.php?page=download Atlas download page].
For example, download "atlas-0.3.0-win32-setup.exe", and run it. The installer will prompt you for the FlightGear directory.  If you installed FlightGear in the default directory, "C:\Program Files\FlightGear", accept the default setting. If you don't know your FlightGear directory, you can right-click your FlightGear icon, click properties then look at the "target". Your root FlightGear directory is the part of the target before the text "\bin\win32\fgrun.exe")
# Start the installation, but let the directory be something other than the FlightGear directory. Let us say <tt>C:\Atlas</tt>.
# After installation open <tt>C:\Atlas</tt> (or whatever directory you selected during installation).
# In the <tt>bin/win32</tt> folder select everything except <tt>glut32.dll</tt>. And copy the selection to your <tt>flightgear/bin/win32</tt> directory.
# Next copy the data files seperately. Don't copy the folders, copy each file and place it in the respective sub-directory.


'''Note:''' If you find this method hard you can go ahead with the default installation.
After finishing the install wizard, but before running Atlas, the next step is to create the actual maps used by Atlas.


===Creating the Maps===
===Creating the Maps===
Atlas puts together the whole map display from smaller pieces of the map, called "tiles".  Before running Atlas for the first time, all of the map tiles used by Atlas must be created from the scenery data installed in FlightGear.  The program used to create the tiles is called "map", and it is installed automatically as part of the Atlas installation.
Depending on the amount of scenery involved, and the level of detail requested, running the "map" process can be relatively fast or slow, anywhere from a few seconds to a few hours.  Fortunately, this process does not need to be done often, only right after Atlas is installed, or whenever new scenery is added to FlightGear.
Here is an example of how to run "map" on Windows:
This example uses the default FlightGear directory for Windows, C:\Program Files\FlightGear.  If you have FlightGear installed somewhere else, substitute your directory in the instructions below. 


Start the Command Prompt...to do this click start>Run ...type cmd and hit enter.
Start the Command Prompt...to do this click start>Run ...type cmd and hit enter.
Type...  
Type...  
   cd C:\Program Files\FlightGear\bin\win32
   cd C:\Program Files\FlightGear\bin\win32
Replace C: with the drive in which FlightGear is installed. This is the default directory. If you changed it during the time of installation then enter your directory (if you don't know your directory then right click your flightgear icon, click properties then copy the target line. Remove the quotes and fgrun.exe).
This is the default directory. If you changed it during installation then enter your directory .
Now Type...
Now Type...
   set FG_ROOT=C:\Program Files\FlightGear\data
   set FG_ROOT=C:\Program Files\FlightGear\data
Replace the directory if necessary.
Now type...
Now type...
   set FG_SCENERY=C:\Program Files\FlightGear\Data\Scenery;C:\Program Files\FlightGear\Scenery
   set FG_SCENERY=C:\Program Files\FlightGear\Data\Scenery;C:\Program Files\FlightGear\Scenery
Replace the directory if necessary. You separate scenery locations with a ";".
Notice that the scenery directories are separated with a semi-colon (";").
Now type
Now type
   map --headless --size=256 --atlas=C:\Program Files\FlightGear\data\Atlas
   map --size=256 --atlas=C:\Program Files\FlightGear\data\Atlas
This puts the files in <tt>C:\Program Files\FlightGear\data\Atlas</tt>. If you want the files in a different location just replace <tt>C:\Program Files\FlightGear\data\Atlas</tt> with the location you want.
This puts the files in <tt>C:\Program Files\FlightGear\data\Atlas</tt>. If you want the files in a different location just replace <tt>C:\Program Files\FlightGear\data\Atlas</tt> with the location you want.


The option --headless makes the whole process go much much faster!
The --size=256 gives a certain resolution in Atlas, meaning that each map generated will be 256x256 pixels. For higher resolutions you would use =512 or =1024 or =2048, for lower resolutions you would use =64 or =128.
 
Therefore, to create low resolution maps type...
  map --size=64 --atlas=C:\Program Files\FlightGear\data\Atlas\lowres
 
The map program has a lot commands-line options.  To see them type...
  map --help


The --size=256 gives a certain resolution in Atlas, meaning that each map generated will be 256x256 pixels. For higher resolutions you would use =512 or =1024 or for lower resolutions you would use =64 or =128.
<tt>
MAP - FlightGear mapping utility


Therefore, to create low resolution maps type...
Usage:
  map --headless --size=64 --atlas=C:\Program Files\FlightGear\data\Atlas\lowres
  --lat=xx.xx            Start at latitude xx.xx (deg., south is neg.)
  --lon=xx.xx            Start at longitude xx.xx (deg., west is neg.)
  --size=pixels          Create map of size pixels*pixels (default 256)
  --scale=x              Kilometers from top to bottom of map (default 100)
  --autoscale            Automatically set scale to 1x1 degree tile
  --light=x, y, z        Set light vector for shading
  --airport-filter=string Display only airports with id beginning 'string'
  --output=name          Write output to given file name (default 'map.png')
  --fg-root=path          Overrides FG_ROOT environment variable
  --fg-scenery=path      Overrides FG_SCENERY environment variable
  --enable-airports      Show airports
  --enable-navaids        Show navaids
  --flat-shading          Don't do nice shading of the terrain
  --atlas=path            Create maps of all scenery, and store them in path
  --verbose              Display information during processing
  --singlebuffer          Use single buffered display
  --headless             Don't display output (render into an off-screen buffer)
  --glutfonts            Use GLUT built-in fonts
  --palette=path          Set the palette file to use
  --smooth-color          Make smooth color heights
  --jpeg                  Create JPEG images with default quality (75)
  --jpeg=integer          Create JPEG images with specified quality
  --aafactor=integer      Do antialiasing on image (factor must be a power of two)
</tt>


'''Note 1:''' Some PC's show Error when used in headless mode. Remove ''--headless'' if you get such an error.
'''Note 1:''' The map process can be much faster on some PC's using '''--headless''' option, which does not display the maps as they are being created. However, on other PC's, this causes an error, and the process will not run.  Remove the '''--headless''' option if you get such an error.


'''Note 2:''' Some PC's get errors when they write program files. If you are getting it write Progra~1 instead of Program Files.
'''Note 2:''' Some PC's get errors when they write program files. If you are getting this error, try Progra~1 instead of Program Files.


There are a lot of commands that can be used in Map.  To see them type...
  map --help


===Run Atlas===
===Run Atlas===
We need to change the Atlas icon on your desktop slightly. Right click the icon and select properties. In the target box completely delete the text and replace with
Atlas can be run by clicking on the shortcut set up by the install wizard, or from the command line. From the command prompt in Windows, enter:
   "C:\Program Files\FlightGear\bin\win32\atlas.exe" "--fg-root=C:\Program Files\FlightGear\Data" --path=F:\FlightGear\Atlas --udp=5500
   "C:\Program Files\FlightGear\bin\win32\atlas.exe" "--fg-root=C:\Program Files\FlightGear\Data" "--path=C:\Program Files\FlightGear\data\Atlas" --udp=5500
 
In the [[FlightGear Wizard]] where you select settings before starting FlightGear, on the page after selecting your airport there is a check box option for Atlas, check it.  In the "port" box enter 5500.  If Atlas is running on the same computer as FlightGear, you can use the IP address 127.0.0.1  If Atlas is running on another computer, enter the IP address of that computer.  (To look up the IP address of a computer, open the command prompt, and enter "ipconfig" as a command to display the IP address).


This should be all 1 line in the target box.  
Once you have Atlas and FlightGear set to use the same port number (5500 by default), run FlightGear.  As you fly around in FlightGear, Atlas will update your position on the map several times per second.


In the [[FlightGear Wizard]] that you get after double clicking the FlightGear icon, on the page after selecting your airport there is a check box option for Atlas, tick it. Enter your IP address usually 192.168.1.100 (To find your ip address, run command prompt. Type ipconfig and u will get your ip address from the information you get. In the ports boxes enter 5500. Click Run.


===Keys===
===Keys===
You can control the Map display with the following keys:
You can control the Atlas Map display with the following keys:


<table>
<table>
Line 78: Line 109:
<tr><td>Space </td><td> Show/hide main interface</td></tr>
<tr><td>Space </td><td> Show/hide main interface</td></tr>
</table>
</table>





Revision as of 15:36, 8 December 2009

Map view of the San Francisco bay area

"Atlas aims to produce and display high quality charts of the World for users of FlightGear" - Atlas website

Introduction

The Atlas program lets FlightGear users display a real-time "moving-map" of their flight. Atlas is an independent software project, distributed under the same free (GPL) software license as FlightGear.

Installing on Windows

To install Atlas on Windows, download the "installer" version of Atlas from the Download Page

For example, download "atlas-0.3.0-win32-setup.exe", and run it. The installer will prompt you for the FlightGear directory. If you installed FlightGear in the default directory, "C:\Program Files\FlightGear", accept the default setting. If you don't know your FlightGear directory, you can right-click your FlightGear icon, click properties then look at the "target". Your root FlightGear directory is the part of the target before the text "\bin\win32\fgrun.exe")

After finishing the install wizard, but before running Atlas, the next step is to create the actual maps used by Atlas.

Creating the Maps

Atlas puts together the whole map display from smaller pieces of the map, called "tiles". Before running Atlas for the first time, all of the map tiles used by Atlas must be created from the scenery data installed in FlightGear. The program used to create the tiles is called "map", and it is installed automatically as part of the Atlas installation.

Depending on the amount of scenery involved, and the level of detail requested, running the "map" process can be relatively fast or slow, anywhere from a few seconds to a few hours. Fortunately, this process does not need to be done often, only right after Atlas is installed, or whenever new scenery is added to FlightGear.

Here is an example of how to run "map" on Windows:

This example uses the default FlightGear directory for Windows, C:\Program Files\FlightGear. If you have FlightGear installed somewhere else, substitute your directory in the instructions below.

Start the Command Prompt...to do this click start>Run ...type cmd and hit enter. Type...

  cd C:\Program Files\FlightGear\bin\win32

This is the default directory. If you changed it during installation then enter your directory . Now Type...

  set FG_ROOT=C:\Program Files\FlightGear\data

Now type...

  set FG_SCENERY=C:\Program Files\FlightGear\Data\Scenery;C:\Program Files\FlightGear\Scenery

Notice that the scenery directories are separated with a semi-colon (";"). Now type

  map --size=256 --atlas=C:\Program Files\FlightGear\data\Atlas

This puts the files in C:\Program Files\FlightGear\data\Atlas. If you want the files in a different location just replace C:\Program Files\FlightGear\data\Atlas with the location you want.

The --size=256 gives a certain resolution in Atlas, meaning that each map generated will be 256x256 pixels. For higher resolutions you would use =512 or =1024 or =2048, for lower resolutions you would use =64 or =128.

Therefore, to create low resolution maps type...

  map --size=64 --atlas=C:\Program Files\FlightGear\data\Atlas\lowres

The map program has a lot commands-line options. To see them type...

  map --help

MAP - FlightGear mapping utility

Usage:

 --lat=xx.xx             Start at latitude xx.xx (deg., south is neg.)
 --lon=xx.xx             Start at longitude xx.xx (deg., west is neg.)
 --size=pixels           Create map of size pixels*pixels (default 256)
 --scale=x               Kilometers from top to bottom of map (default 100)
 --autoscale             Automatically set scale to 1x1 degree tile
 --light=x, y, z         Set light vector for shading
 --airport-filter=string Display only airports with id beginning 'string'
 --output=name           Write output to given file name (default 'map.png')
 --fg-root=path          Overrides FG_ROOT environment variable
 --fg-scenery=path       Overrides FG_SCENERY environment variable
 --enable-airports       Show airports
 --enable-navaids        Show navaids
 --flat-shading          Don't do nice shading of the terrain
 --atlas=path            Create maps of all scenery, and store them in path
 --verbose               Display information during processing
 --singlebuffer          Use single buffered display
 --headless              Don't display output (render into an off-screen buffer)
 --glutfonts             Use GLUT built-in fonts
 --palette=path          Set the palette file to use
 --smooth-color          Make smooth color heights
 --jpeg                  Create JPEG images with default quality (75)
 --jpeg=integer          Create JPEG images with specified quality
 --aafactor=integer      Do antialiasing on image (factor must be a power of two)

Note 1: The map process can be much faster on some PC's using --headless option, which does not display the maps as they are being created. However, on other PC's, this causes an error, and the process will not run. Remove the --headless option if you get such an error.

Note 2: Some PC's get errors when they write program files. If you are getting this error, try Progra~1 instead of Program Files.


Run Atlas

Atlas can be run by clicking on the shortcut set up by the install wizard, or from the command line. From the command prompt in Windows, enter:

  "C:\Program Files\FlightGear\bin\win32\atlas.exe" "--fg-root=C:\Program Files\FlightGear\Data" "--path=C:\Program Files\FlightGear\data\Atlas" --udp=5500

In the FlightGear Wizard where you select settings before starting FlightGear, on the page after selecting your airport there is a check box option for Atlas, check it. In the "port" box enter 5500. If Atlas is running on the same computer as FlightGear, you can use the IP address 127.0.0.1 If Atlas is running on another computer, enter the IP address of that computer. (To look up the IP address of a computer, open the command prompt, and enter "ipconfig" as a command to display the IP address).

Once you have Atlas and FlightGear set to use the same port number (5500 by default), run FlightGear. As you fly around in FlightGear, Atlas will update your position on the map several times per second.


Keys

You can control the Atlas Map display with the following keys:

+Zoom in
-Zoom out
a/AShow/hide Airports
CToggle auto-centering
c Center map on Aircraft
d/D Hide/show the info interface and the graphs window
f/F Select next (f) or previous (F) flight track
j/J Toggle search interface
L Show the next downloading tile
l Schedule/de-schedule tile at current lat/lon
n/N Show/hide navaids
o/O Open flight file
s/S Save flight file
t/T Toggle showing the bitmap overlay (yes, that's the maps!)
w/W Close the current track (Warning, this terminates live aircraft tracking over network for good!)
u/U Unattach current flight trac, ie start a new track
v/V Show/hide names of airports/navaids
Space Show/hide main interface


Enjoy Playing!!!

External links