Gltf2Raster - jgoffeney/Cesium4Unreal GitHub Wiki
The Gltf2Raster application converts data in the 3d tile format to a raster format.
Command Line
The basic command line for performing GLB file raster mosaicing.
gltf2raster
[-mode {MOSAIC}]
[-vs vsfilepath]
[-fs fsfilepath]
[-targetdims xsize ysize]
[-modellistfile modelsFilePath]
[-nodata rasterNoDataValue]
sourcemodelpath targetrasterpath
Description
Descriptions of the parameters for mosaicing.
Parameter | Description | Options | Notes |
---|---|---|---|
-mode | Sets the mode for app | MOSAIC | |
-vs | the path to the vertex shader file | ||
-fs | the path to the framebuffer shader file | ||
-targetDims | the target raster pixel dimensions as width and height | ||
-modelListFile | the path to the model list file | See here | |
-noData | the target raster NODATA value (default: -9999) | ||
targetRasterPath | the target raster for FRAMEBUFFER and MOSAIC mode |
ModelListFile
The format of the model list input file is one model per line as:
minXDegrees minYDegrees maxXDegrees maxYDegrees modelFilePath
Example:
-121.58122155442273 46.825995093357726 -121.5754930213787 46.82896363675754 H:\Terracotta\glb2raster\data\GLBOverlap\latest_dsm_data_0_189.3tz_2_15_25769_30200.glb
-121.5869504318766 46.826920791100605 -121.58122145394506 46.829889407619774 H:\Terracotta\glb2raster\data\GLBOverlap\latest_dsm_data_0_189.3tz_2_15_25770_30199.glb
-121.58362052327581 46.827942231838996 -121.57789162090754 46.830910898210284 H:\Terracotta\glb2raster\data\GLBOverlap\latest_dsm_data_0_189.3tz_2_15_25769_30199.glb
Usage
Mosaic multiple GLB files
.\glb2raster.exe -mode mosaic -vs ..\..\..\shaders\ECEF2LLAVertexShader.txt -fs ..\..\..\shaders\ECEF2LLAFramebufferFragmentShader.txt -targetdims 1000 1000 -modelListFile glbtiles.txt mosiacRaster.asc