Using TerraGear: Difference between revisions

Jump to navigation Jump to search
Small fgfs-construct cleanup
m (→‎Obtaining TerraGear: Gitorious link)
(Small fgfs-construct cleanup)
Line 132: Line 132:


== Generating scenery ==
== Generating scenery ==
You will now have a work directory looking something like this:
You will now have a work directory, with subdirectories like:
{| class="prettytable"
{|
|AirportArea
|
|-
: AirportArea
|AirportObj
: AirportObj
|-
: Bog
|Bog
: DryCropPastureCover
|-
: EvergreenBroadCover
|DryCropPastureCover
: GrassCover
|-
: IrrCropPastureCover
|EvergreenBroadCover
: Lake
|-
: Landmass
|GrassCover
: Marsh
|-
: MixedCropPastureCover
|IrrCropPastureCover
| valign="top" |
|-
: MixedForestCover
|Lake
: Railroad
|-
: Road
|Landmass
: Sand
|-
: ScrubCover
|Marsh
: Shared
|-
: SRTM-3
|MixedCropPastureCover
: Stream
|-
: Town
|MixedForestCover
: Urban
|-
|Railroad
|-
|Road
|-
|Sand
|-
|ScrubCover
|-
|Shared
|-
|SRTM-3
|-
|Stream
|-
|Town
|-
|Urban
|}
|}


Now we can actually generate the scenery. This is done by the fgfs-construct command. Run the command with "--help" to get usage information.  
Now we can actually generate the scenery. This is done by the fgfs-construct command. Run the command with <code>--help</code> to get usage information.  


We need to define:
We need to define:
* the work (--work-dir) and output (--output-dir) directories
* The work (--work-dir) and output (--output-dir) directories.
* the center of the scenery we want to generate (--lat, --lon)
** '''Note''' about the output directory: this must point to a <tt>Terrain/</tt> directory, else recent FlightGear versions will be unable to load the terrain.
* the radius (--xdist, --ydist) from which to generate
* The center of the scenery we want to generate (--lat, --lon).
* The radius (--xdist, --ydist) from which to generate.
* All the work directories to include in the scenery.
* All the work directories to include in the scenery.


For example:
For example:
  fgfs-construct --work-dir=./work --output-dir=./output --lon=55 --lat=60 --xdist=3 --ydist=3 \
{{Pre2|<nowiki>fgfs-construct --work-dir=./work --output-dir=./output/Terrain --lon=55 --lat=60 --xdist=3 --ydist=3 AirportArea SRTM-3 AirportObj Stream Bog IrrCropPastureCover Town Lake Urban Landmass Railroad DryCropPastureCover Road EvergreenBroadCover Marsh Sand MixedCropPastureCover ScrubCover GrassCover MixedForestCover</nowiki> }}
  AirportArea SRTM-3 AirportObj Stream Bog IrrCropPastureCover Town Lake Urban Landmass Railroad \
  DryCropPastureCover Road EvergreenBroadCover Marsh Sand MixedCropPastureCover ScrubCover GrassCover \
  MixedForestCover


When this finishes, the output directory will contain a scenery sub-tree.
When this finishes, the output directory will contain a scenery sub-tree. Point to it by setting either [[$FG_SCENERY]] or by using the --fg-scenery command-line option to fgfs, and give your new scenery a try!
 
Point to it by setting either [[$FG SCENERY]] or by using the --fg-scenery command-line option to fgfs, and give your new scenery a try!


== Troubleshooting ==
== Troubleshooting ==

Navigation menu