GLTF to Binary GLTF (GLB) converter, supporting Cesium Batch and Instance files (b3dm and i3dm) as well.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


GLTF to Binary GLTF (GLB) Converter

Created by Christopher Mitchell, Ph.D. et alia of Geopipe, Inc.

This project was inspired by and started as a direct Javascript-to-Python port with a bunch of bugfixes. It implements b3dm headers for Cesium 3D Tiles, and will soon implement i3dm as well. It also includes a packcmpt tool for combining one or more i3dm/b3dm models into a single cmpt file.



$ ./ -h
usage: [-h] [-e] [-c] [-i I3DM] [-b B3DM] [-o OUTPUT] filename

Converts GLTF to GLB

positional arguments:

optional arguments:
  -h, --help                    show this help message and exit
  -e, --embed                   Embed textures or shares into binary GLTF file
  -c, --cesium                  sets the old body buffer name for compatibility with Cesium [UNNECESSARY - DEPRECATED]
  -i I3DM, --i3dm I3DM          Export i3dm, with optional path to JSON instance table data
  -b B3DM, --b3dm B3DM          Export b3dm, with optional path to JSON batch table data
  -o OUTPUT, --output OUTPUT    Optional output path (defaults to the path of the input file


$ ./ -h
usage: [-h] -o OUTPUT input_files [input_files ...]

Packs one or more i3dm and/or b3dm files into a cmpt

positional arguments:

optional arguments:
  -h, --help                    show this help message and exit
  -o OUTPUT, --output OUTPUT    Output cmpt file
  -u                            Unpack the output CMPT file instead of creating it (incomplete)


(c) 2016-2018 Geopipe, Inc. and licensed under the BSD 3-Clause license. See LICENSE.