Using the Custom Scenery TerraGear Toolset: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3: Line 3:
This document describes the most efficient way to generate new scenery for FlightGear, using some of the tools that the FlightGear Custom Scenery Project (http://www.custom-scenery.org/) have developed. These tools are used to generate the official scenery for each release. As such, they represent the easiest, and best way to generate new scenery for FlightGear, and make TerraGear much less of a TerrorGear!
This document describes the most efficient way to generate new scenery for FlightGear, using some of the tools that the FlightGear Custom Scenery Project (http://www.custom-scenery.org/) have developed. These tools are used to generate the official scenery for each release. As such, they represent the easiest, and best way to generate new scenery for FlightGear, and make TerraGear much less of a TerrorGear!


This document assumes that you have installed TerraGear CVS, and applied the Custom Scenery Project patch set to TerraGear (http://www.custom-scenery.org/TerraGear-Tools.342.0.html), which fixes a number of bugs and adds some enhancements.
This document assumes that you are running some form of Unix (cywin might work, but I haven't tried it), have installed TerraGear CVS, and applied the Custom Scenery Project patch set to TerraGear (http://www.custom-scenery.org/TerraGear-Tools.342.0.html), which fixes a number of bugs and adds some enhancements. You'll also need quite a bit of disk space - 5GB should be enough to generate somewhere the size of Scotland.


== Setup ==
== Setup ==
Line 15: Line 15:
* work for data that has been processed (typically by shape-decode) and is ready to be munged into scenery  
* work for data that has been processed (typically by shape-decode) and is ready to be munged into scenery  
* output for the scenery files you will create.
* output for the scenery files you will create.


Terragear needs three different pieces of information to generate scenery.
Terragear needs three different pieces of information to generate scenery.
Line 150: Line 149:


For example:
For example:
   fgfs-construct --work-dir=./work --output-dir=./output --lon=55 --lat=60 --xdist=3 --ydist=3  
   fgfs-construct --work-dir=./work --output-dir=./output --lon=55 --lat=60 --xdist=3 --ydist=3 \
AirportArea SRTM-30 AirportObj Stream Bog IrrCropPastureCover Town Lake Urban Landmass Railroad DryCropPastureCover Road EvergreenBroadCover Marsh Sand MixedCropPastureCover ScrubCover GrassCover MixedForestCover Shared
  AirportArea SRTM-30 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.