| title = TerraGear GUI
| image =
| developedby = Gijs de Rooy (original by Alex Park)
| initialrelease = March 24, 2009 (original)
| writtenin = C++ (Qt)
| os = Windows| website =
http:// gitorious. org/ terragear/terrageargui/
The '''GUI''' tool for '''[[TerraGear]]''' allows people to create [[scenery]] for [[FlightGear]] without using commandlines.
== Using the GUI ==
=== Start ===
# Set the TerraGear directory, in which you'll find
ogr-decode, fgfs-construct etc. TerraGear must be downloaded/build seperatly from the GUI!
# Set the project's directory. In this directory, all project related stuff will be stored throughout the process. You best choose an empty directory specific to your project.
HGT chop === This will convert the . hgt. zip files you have downloaded earlier on and converts them into a form that TerraGear can read.
=== Genapts === What is scenery without airport in a flight simulator? If your tile does not contain any airports, you can skip this part and continue with [ [#ogr-decode|ogr-decode]].
First create the <tt>data /Airports/</tt> directory. Then locate FlightGears <tt>apt. dat. gz</tt> file, which is usually in <tt> [[$FG ROOT]]/ Airports/</tt> in the just created directory. Unpack the file before you continue.
Use the button to browse to the (unpacked) . dat file. If you only want to create the scenery for a specific airport you can enter the ICAO name into the relevant field. If you do not enter any information in any of the boxes, the tool will run through the entire apt. dat file , which can take a long time.
=== OGR Decode === Now we need to decode the shapefiles into TerraGear format, which we do with OGR Decode. After clicking the "Retrieve shapefiles" button, the left list will be populated with the shapefiles from your project's data directory. On the right list you 'll add the materials, per shapefile. Each single shapefile on the left, should have a material assigned on the right . By dragging materials up&down, you can finetune the material assignments.
''Warning: *_landmass MUST be mapped onto the material Default. '''
You can delete shapefiles and materials from the lists by double- clicking on them.
=== FGFS Construct === The fgfs- construct tool brings all your gathered data together, throws it in a washing machine and spits it out the otherside in format ready for use with FlightGear. Click the "Update list" button to populate the field with all decodes shapefiles. In the list you select all types that you 'd like to include in your scenery.
Then set the center of the to - be - created scenery area; and the radius, all in degrees.
After clicking the "Generate scenery" button, it may take a long time for TerraGear to finish. Depending on the size of the area you are creating the scenery for and the level of detail in your shapefiles. Simple and small sceneries will take a couple of minutes, where larger, more detailed areas can take over an hour! So trying new things on small areas first will save you a lot of time.
The folders and files in your project's <tt>output/</tt> directory are ready to use as scenery. You can set the scenery path of FlightGear to this directory to check if the scenery is generated correctly.
== GUI development ==
GUI is currently undergoing a complete rebuild and re-written in [ http:// qt. nokia.com Qt] . This will allow us to build the GUI on multiple OSes (Mac OS X, UNIX, Windows).
The current source code can be retrieved [http://gitorious.org/terragear/terrageargui/ from Gitorious]. Feel free to add feature requests and/or bug reports.
=== Requested features ===
* Creating automatically all needed folders for shapefiles and the decoded ones . This includeds automated decoding all shapefiles in a directory. * Maybe error reports possible? So you get a message when a certain file isn't found, or a certain path isn't set. Right now it only appears in the console, but it's hard to read the fast scrolling text.