1
0
Fork 0

Update to what we're actually using.

This commit is contained in:
Martin Spott 2015-10-07 11:31:59 -07:00
parent ac460f9225
commit 8f48b13f09
2 changed files with 113 additions and 6 deletions

View file

@ -0,0 +1,41 @@
#!/bin/bash -x
#
# Copyright (C) - 2006 FlightGear scenery team
# Copyright (C) 2006 - 2014 Martin Spott
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
date
WORKBASE=${HOME}/workdirs
NUDGE="--nudge=20"
# Base Package
#SPAT="--min-lon=-124 --max-lon=-120 --min-lat=36 --max-lat=39"
# World
SPAT=""
APTDAT=${HOME}/live/airfield/v10+/apt.dat
DEM="--dem-path=SRTM2-VFP-3-NE --dem-path=SRTM2-VFP-3-NW \
--dem-path=SRTM2-VFP-3-SE --dem-path=SRTM2-VFP-3-SW"
GENAPTS=${HOME}/terragear/bin/genapts850
#${GENAPTS} --threads --input=${APTDAT} --work=${WORKBASE} ${DEM} ${NUDGE} ${SPAT}
${GENAPTS} --input=${APTDAT} --work=${WORKBASE} ${DEM} ${NUDGE} ${SPAT}
# EOF

View file

@ -1,8 +1,74 @@
#! /bin/bash
#!/bin/bash -x
#
# Copyright (C) - 2006 FlightGear scenery team
# Copyright (C) 2006 - 2014 Martin Spott
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
./start_construct_server.sh
date
# Start 4 clients
for f in 1 2; do
./start_construct_client.sh $f
done
WORKBASE=${HOME}/workdirs
OUTPUTDIR=${HOME}/scenery/Terrain
DEBUGDIR=${HOME}/scenery/Debug
SHAREDIR=${HOME}/scenery/Shared
NUDGE="--nudge=20"
mkdir -p ${OUTPUTDIR} ${DEBUGDIR}
#SHAREDOPTS="--no-write-shared-edges --use-own-shared-edges"
#SHAREDOPTS="--no-write-shared-edges"
# Base Package
#SPAT="--min-lon=-124 --max-lon=-120 --min-lat=36 --max-lat=39"
# World
#SPAT="" # this one doesn't work
#SPAT="--min-lon=-180 --max-lon=180 --min-lat=-90 --max-lat=90"
CONSTRUCT=${HOME}/terragear/bin/tg-construct
LOADDIRS="AirportArea \
AirportObj \
SRTM2-VFP-3-NE \
SRTM2-VFP-3-NW \
SRTM2-VFP-3-SE \
SRTM2-VFP-3-SW \
Poly-City \
Poly-Commercial \
Poly-Floodland \
Poly-Waterbody \
Poly-Agro \
Poly-Forest \
Poly-LandCover \
Poly-Ice \
Poly-Watercourse \
Poly-RoadCover \
Line-Road \
Line-Railroad \
Line-Stream"
# --threads=4
${CONSTRUCT} \
--output-dir=${OUTPUTDIR} \
--work-dir=${WORKBASE} \
--share-dir=${SHAREDIR} \
--usgs-map=${HOME}/terragear/share/TerraGear/usgsmap.txt \
--priorities=${HOME}/terragear/share/TerraGear/default_priorities.txt \
${NUDGE} ${SPAT} --ignore-landmass \
--debug-dir=/home/martin/scenery/Debug \
${LOADDIRS}
# EOF