Difference between revisions of "TerraGear"

From FlightGear wiki
Jump to: navigation, search
(Main terragear-cs GIT repository moved to Gitorious)
Line 14: Line 14:
=== Source ===
=== Source ===
The source is hold in a [[git]] repository on the [http://mapserver.flightgear.org/git/ mapserver].
The source is hold in a [[git]] repository at Gitorious.
  git clone git://mapserver.flightgear.org/terragear-cs
  git clone git://git.gitorious.org/fg/terragear-cs.git

Revision as of 17:41, 3 October 2011

TerraGear is a collection of open-source tools and rendering libraries which can transform publically available GIS data in 3D representations (i.e. 3D models or 3D maps) of the earth for use in real time rendering projects. Terragear can import 3D data sets such as DEM terrain grids, 2D polygon data sets such as coastlines, city outlines, lake outlines, and 2D raster data sets such as the 1 km NAOO land use/land cover data. It also has tools for generating realistic airports, runways, and lighting based on available FAA data.

TerraGear is the primary tool used to generate the Scenery for the FlightGear project.


For a variety of reasons you might want to build terrain yourself, rather than downloading it from the available Scenery on FlightGear. For instance, if you use TaxiDraw to create or modify an airport layout, you might wish to see how that modified airport would look in the Scenery before deciding you're happy with the results. And normally, to see and use the airport in the Scenery, it's necessary to submit the modifications to the FlighGear Scenery staff and then wait untill the next update of the Scenery of that area is available via TerraSync or in the official FlightGear Scenery build. If you can build terrain yourself, you can start using it right away.
Maybe the official Scenery is too detailed for your slow machine, and you'd like to build terrain using a digital elevation model (DEM) with poorer resolution, to decrease the number of polygons and thus improve your framerates. Or maybe you've got a fantastically fast machine, and you want to build your own terrain using higher resultion vector data (vmap1, Tiger) to get better roads/rivers. For all these reasons learning how to use TerraGear is a good idea.

Getting TerraGear

Pre-compiled builds


The source is hold in a git repository at Gitorious.

git clone git://git.gitorious.org/fg/terragear-cs.git



  • TerraGear
    • SimGear - Not simgear-cs!
    • OpenSceneGraph
    • plib
    • libnewmat - at least version newmat11 (which is beta at the time of writing)
      See README.newmat for info on how to obtain and install it.
    • gpc - See README.gpc for info on how to obtain and install it.
    • libgdal
    • libproj
    • libogdi
    • libexpat
    • Feel free to add more required libs here!


Please, have a look at README and/or README.cygwin of the terragear-cs sources.

./configure [options] 
sed s/-O2// -i src/Lib/TriangleJRS/Makefile
make install

./configure options:

I am missing reliable data here. Please, revise/complete the list if you have more info!

Plattform specific

GUI Tool

A TerraGear GUI is available for those that would like to use TerraGear without knowing/using the command line options.

Related content