Importing and Exporting Using the Command Line
In addition to the format conversions supported from TerraExplorer user interface, additional conversions can be performed from the SLMeshConverter command line tool:
§ 3D Tiles to: 3D Tiles, I3S/SLPK, 3MX, and o3DML
§ OSGB to: 3D Tiles, I3S/SLPK, 3MX, and o3DML
§ o3DML to o3DML
§ 3DML to o3DML
To convert, construct a single command line that includes all the following:
1. Run SLMeshConverter
"c:\program files\Skyline\TerraExplorer Pro\SLMeshConverter.exe" -cmd convert
2. Define the input layer:
§ For 3DML/o3DML – Full path to the file
§ For 3D Tiles – Full path to the tileset.json
§ For OSGB – Full path to the root OSGB file
-in "FullPathToFile"
3. -Define the output format:
§ For 3D Tiles
-f "b3dm"
§ For o3DML
-f "o3dml"
§ For 3DML
-f "3dml"
§ For I3S/SLPK
-f "i3s"
§ For 3MX
-f "3mxb"
4. Define the output file/folder:
§ For 3MX/3D Tiles – Full path to the output folder
§ For 3DML/o3DML – Full path to the output file
§ For I3S/SLPK – Full path to the output file (e.g., "N:/Output Files/OutputFile.slpk")
§ For OSGB – Full path to the root OSGB file
Examples:
Convert 3D Tiles to SLPK
"C:\Program Files\Skyline\TerraExplorer Pro\SLMeshConverter.exe" -cmd convert -in "C:\LayersToConvert\tileset.json" -out "N:\Output Files\OutputFile.slpk" -f i3s
Convert OSGB to o3DML
"C:\Program Files\Skyline\TerraExplorer Pro\SLMeshConverter.exe" -cmd convert -in "C:\LayersToConvert\Tile_000106_000090.osgb" -out "C:\ConvertedFiles\ConvertedFile.o3dml" -f o3dml
Conversion Methods
§ GUI - Direct conversion via GUI
§ Command Line - Direct conversion (via SLMeshConverter command line tool)
§ Indirect – Indirect conversion – first convert to 3DML and from 3DML to the required format
Output Formats |
|
|||||||
Input Formats |
|
3DML |
3D Tiles |
Esri I3S/SLPK |
Bentley’s 3MX |
OBJ (models) |
o3DML |
|
3DML |
Command Line |
|
||||||
3D Tiles |
Command Line |
Command Line |
Command Line |
Indirect |
Command Line |
|
||
OSGB |
Command Line |
Command Line |
Command Line |
Indirect |
Command Line |
|
||
o3DML |
Indirect |
Indirect |
Indirect |
Indirect |
Command Line |
|
||
DAE LODTreeExport |
Indirect |
Indirect |
Indirect |
Indirect |
Indirect |
|
||
BIM FBX |
Indirect |
Indirect |
Indirect |
Indirect |
Indirect |
|
||
BIM IFC |
Indirect |
Indirect |
Indirect |
Indirect |
Indirect |
|
||
Point layer with models (DAE, OBJ...) |
Indirect |
Indirect |
Indirect |
Indirect |
Indirect |
|