1
0
Fork 0
flightgear/utils/TerraSync
2004-04-15 03:40:39 +00:00
..
.cvsignore Hide more generated files. 2002-12-04 12:01:17 +00:00
Makefile.am Add network support libraries 2003-07-09 19:57:22 +00:00
README.txt Update readme. 2003-12-05 02:11:51 +00:00
terrasync.cxx Updated to point to new scenery repository (not fully populated but will 2004-04-15 03:40:39 +00:00

TerraSync
=========

Usage:

    terrasync -p <port> [ -s <rsync_source> ] -d <rsync_dest>

Example:

    $ fgfs --atlas=socket,out,1,localhost,5500,udp --fg-scenery=/usr/local/FlightGear/data/scenery:/data1/Scenery-0.9.2
    $ nice terrasync -p 5500 -d /data1/Scenery-0.9.2

Requirements:

    - rsync util installed in your path.
    - mkdir util installed in your path.

NOTE!!!!  Do not run terrasync against the default
$FG_ROOT/data/Scenery/ directory.  I recommend creating a separate
scenery directory and specifying both in your ~/.fgfsrc file or via
the command line.

TerraSync is a utility that is intended to run as a light weight
background process.  It's purpose is to monitor the position of a
FlightGear flight and pre-fetch scenery tiles from a remote server
based on the current FlightGear position.

This allows you to do a base install of FlightGear with no add on
scenery.  Now just go and fly anywhere.  Scenery is fetched "just in
time" and accumulated on your HD so it is already there next time you
fly.  You can fly anywhere and essentially just the scenery you need
is auto-installed as you fly.

Terrasync runs as a separate process and expects the --atlas=port
format to be sent from fgfs.  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.  The user need to choose a port for
FlightGear->TerraSync communication and then specify the server
location and destation scenery tree.

As you fly, terrasync will periodically refresh and pull any new
scenery tiles that you need for your position from the server.

This also works if the scenery on the scenery server is updated.
Rsync will pull any missing files, or any newly 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
may not have been fetched yet.  I suppose without making a more
complex protocol, the user will need to be aware of this.  For now I
suggest exiting FlightGear after terrasync gets caught up, and
restarting FlightGear.  The second time FlightGear starts up
everything should be good.

Final notes:

I have set up the scenery server at
scenery.flightgear.org::Scenery-0.9.2.  This is the latest 0.9.2 build
of the world.