1
0
Fork 0
No description
Find a file
curt bb4c4f6b13 First stab at a utility to fetch scenery based on the current flightgear
position.

Terrasync runs as a separate process and accepts the --atlas=port format.
The fgfs output tells the terrasync util where FlightGear is currently flying.
Terrasync will then issue the appropriate commands to rsync the surrounding
areas to your local scenery directory.

As you fly, terrasync will periodically refresh and pull any new scenery tiles
in the vicinity.

This also works if the scenery on the scenery server is update.  Rsync will
pull any missing files, or any updated files.

There is a chicken/egg problem when you first start up in a brand new area.
FlightGear is expecting the scenery to be there *now* but it hasn't been
fetched yet.  I suppose without making a more complex protocol, the user
will need to be aware of this.  The user could restart flightgear after the
initial rsync completes, and then after that everything should be good,
assuming the user has the necessary bandwidth to keep up with flight speeds.

Final notes:

At the moment Alex Perry has a partial rsync server, but I don't know it's
status.  I hope to have a full server up and running at some point soon.

Currently the terragear utility just echos the commands it would run to
rsync the data, it doesn't actually run the commands.  This is a work in
progress.
2002-11-23 03:17:47 +00:00
src First stab at a utility to fetch scenery based on the current flightgear 2002-11-23 03:17:47 +00:00
.cvsignore Update ignored files. 2002-10-18 19:27:09 +00:00
acinclude.m4 Julian Foad: 2002-11-11 15:20:18 +00:00
AUTHORS Initial revision 2000-02-09 19:51:45 +00:00
autogen.sh Updated dem libs to support z units == 1 (feet). 2002-10-08 15:28:53 +00:00
ChangeLog Initial revision 2000-02-09 19:51:45 +00:00
configure.ac First stab at a utility to fetch scenery based on the current flightgear 2002-11-23 03:17:47 +00:00
detect.c Initial revision 2000-02-09 19:51:45 +00:00
Makefile.am Added support (contributed by David Luff) for UK OSBG36 coordinate systems as 2001-04-24 21:10:27 +00:00
NEWS Ready for 0.0.4 release. 2000-12-19 17:54:51 +00:00
README Initial revision 2000-02-09 19:51:45 +00:00
README.cygwin Cygwin patches from Dave Luff. Reformatted (line wrap). 2002-01-30 14:09:44 +00:00
README.gpc libgpc.a renamed to libgenpolyclip.a to avoid a conflict with the 2001-07-11 00:32:02 +00:00
README.howto Various reshufflings of directory layout. 2001-04-25 18:55:19 +00:00
VERSION.in Initial revision 2000-02-09 19:51:45 +00:00

FG Scenery Tools README
=======================

Contained here-in are the FG scenery creation tools.  These can be
used to convert 3 arcsec ASCII format DEM files and 30 arcsec binary
format DEM files into Flight Gear scenery.

Eventually these tools will expand to support insertion of airports,
roads, rivers, lakes, etc.


Building the Tools
==================

These tools are compiled and tested under Linux.  I'm all for
portability, but I just haven't been as motivated to port these tools,
since scenery creation is less of a general need ... especially at
this stage.  However, if anyone wants to work on porting to other
platforms, I will be happy to incorporate patches.

The process for building these tools is very similar to building the
main FG source code.

1.  Set the FG_ROOT, FG_ROOT_SRC, and FG_ROOT_LIB environment
    variables.

2.  Run ``make depend''

3.  Run ``make clean''

4.  Run ``make''


3 Arcsec ASCII DEM files
========================

Data files for the USA are available in this format from:

    http://edcwww.cr.usgs.gov/doc/edchome/ndcdb/ndcdb.html

To generate FG scenery from one of these dem files, run:

    ./process-dem.pl <error-tolerance-squared> dem-file-1 [ dem-file-2 ...]

You can vary the error tolerance to control the level of detail (and
size) of the resulting scenery.  Note, you must specify the error
tolerance squared.  So, if you wish to allow up to a 10 meter error
margin (very high level of detail) you would specify a value of 100.
If you desire an error tolerance of 200 meters (medium detail level)
you would specify a value of 40000.

The process-dem.pl script will automatically dump the resulting .obj
files in the proper directory tree.


30 Arcsec Binary DEM files
==========================

These data files have world wide coverage and are available from:

    http://edcwww.cr.usgs.gov/landdaac/gtopo30/gtopo30.html

To process these data files, you must first run:

    DemRaw2Ascii/raw2ascii <input_file_basename> <output_dir>

For example:

    DemRaw2Ascii/raw2ascii /tmp/W020N90 asciidems/ 

This will create ASCII DEM files for each 1 degree x 1 degree area in
the specified output dir.

Then, you can take these ascii dem files and feed them through the
same procedure you use with the 3 arcsec dem files.