Changes

Jump to: navigation, search

Virtual Planet Builder

945 bytes added, 19:36, 30 May 2020
no edit summary
If you've got an existing FlightGear build, there are some additional dependencies:
* OSG
** Including NVTT. ('sudo apt-get install libnvtt-dev' - oddly VPB builds without it but then checks for the shared library at runtime...)
* GDAL (https://gdal.org/)
** ... which requires PROJ 6 or above (https://proj.org/)
*** ... which requires the sqlite3.11 or above development package (on linux - 'sudo apt-get install libsqlite3-dev')
Note that GDAL and PROJ do not use cmake, so you need to run "./configure-prefix=/path/to/install" in the source directory before make
VPB is built using cmake e.g.
Choose RASTER data, which will download a geo-referenced TIF image.
== Getting DEM data. ==  For SRTM, try here: http://srtm.csi.cgiar.org/ Again, Raster data is fine. == Running VPB == Here are the options I've used: ./bin/osgdem --geocentric -t /home/stuart/FlightGear/VPB/data/CORINE/u2018_clc2018_v2020_20u1_raster100m/DATA/U2018_CLC2018_V2020_20u1.tif -d /home/stuart/FlightGear/VPB/data/SRTM90/srtm_36_01.tif -e -5 54 -2 56 --PagedLOD -l 5 --RGB-24 -o foo.osgb * --geocentric because that's what FG uses* --PagedLOD to generate PagedLOD nodes* -l 5 the number of LOD levels to generate* -t the texture to drape (in this case CORINE)* -d the DEM to use (in this case a piece of SRTM90)* -e is the extents in decimal degrees: LON1 LAT1 LON2 LAT2* --RGB-24 to user an RGB output texture * -o is the output file, in this case native OSG binary format.

Navigation menu