$FG SCENERY

From FlightGear wiki
Revision as of 12:06, 15 March 2013 by Tuxum (talk | contribs) (specifing whgere to set the --fg-scenery option)
Jump to navigation Jump to search

$FG_SCENERY is refered to as the scenery directory or directories of FlightGear. It can be set with --fg-scenery= (from the command line or in the fgfsrc file) or on the first page of FGRun.

Common paths

  • Mac OS X: Applications/FlightGear.app/Contents/Resources/data/Scenery
  • Ubuntu: /usr/share/games/flightgear/Scenery
  • Windows: %ProgramFiles%/FlightGear/data/Scenery

Multiple directories

Directories are being read from left to right. For each scenery tile, FlightGear will check whether it exists in the first directory. If not, it will move on to the second directory and so on. Directories should be seperated by semicolons, like:

--fg-scenery=Scenery/Custom;Scenery/TerraSync

So, FlightGear searches the scenery path in order. The first terrain found for each tile is loaded. Objects for a tile are loaded from all directories visited before (and including the one where) the terrain was found.

The path can contain objects only, terrain only or combined scenery directories. The Airports and Model directories (which are late additions) complicates the scheme a bit as they can only be in combined terrain and objects directories. (I think that the first found such directories are used).