-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
55 lines (46 loc) · 2.16 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
PATH=$PATH:/mnt/c/MSFStk
case "$1" in
cleanonly)
rm -rfv Temp Output
exit
;;
clean*)
rm -rfv Temp Output
# echo "aerial: runway 25 (2013)"
# powershell.exe msfs aerial -border '.\Sources\edcd-rwy25.shp' \
# -imagery '.\Sources\dop20-2013\edcd-2013-64k.tif' \
# -blend 5 -res 0.2 -epsg 25833 \
# '.\PackageSources\aerial\tiles\'
echo "aerial: runway 25 ALS"
powershell.exe msfs aerial -border '.\Sources\edcd-rwy25-als.shp' \
-imagery '.\Sources\dop20-2013\edcd-2013-64k.tif' \
-blend 10 -res 0.2 -epsg 25833 \
'.\PackageSources\aerial\tiles\'
for i in PackageSources/aerial/tiles/*.png; do convert $i -level 0%,90% -modulate 50,120,100 $i; done
# echo "aerial: reference"
# powershell.exe msfs aerial -border '.\Sources\edcd-premises-outer.shp' \
# -imagery '.\Sources\dop20-2013\edcd-2013-64k.tif' \
# -blend 10 -res 0.5 -epsg 25833 \
# '.\PackageSources\aerial\tiles\'
# for i in PackageSources/aerial/tiles/*.png; do convert $i -level 0%,90% -modulate 80,120,100 $i; done
echo mesh: outer airfield premises in 5m
powershell.exe msfs elev -border '.\Sources\edcd-premises-outer.shp' \
-imagery '.\Sources\dem\dgm-edcd.tif' \
-res 5 -falloff 100 -priority 2 \
'PackageSources\mesh\mesh-edcd-premises-outer.xml'
echo mesh: runways and aprons in 1m
powershell.exe msfs elev -border '.\Sources\edcd-runway-apron.shp' \
-imagery '.\Sources\dem\dgm-edcd.tif' \
-res 1 -falloff 20 -priority 3 \
-airport 'PackageSources\scene\EDCD.xml' \
'PackageSources\mesh\mesh.xml'
echo shelters in the northeast in 1m
powershell.exe msfs elev -border '.\Sources\edcd-shelters-northeast.shp' \
-imagery '.\Sources\dem\dgm-edcd.tif' \
-res 1 -falloff 20 -priority 3 \
'PackageSources\mesh\mesh-edcd-shelters-northeast.xml'
;;
esac
# msfs project -type scenery -id EDCD -name "charliebravo-airport-edcd-cottbus-drewitz" -title "Flugplatz Cottbus-Drewitz" -creator aurel -version 0.1.0 -aerial -scene -mesh -services EDCD "edcd"
fspackagetool.exe -mirroring -nopause '.\charliebravo-airport-edcd-cottbus-drewitz.xml'