Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 3.25 KB

README.md

File metadata and controls

97 lines (74 loc) · 3.25 KB

gltf-to-3d-tiles

glTF to 3d Tiles Converter. Convert glTF model to Glb, b3dm or 3d tiles format.

Read More

I am writting articles to explain code snippets and methodology used at this repository:

  1. Constructs Bounding Volume Hierarchy(BVH) with Surface Area Heuristic(SAH) in Python
  2. 3D Affine Transformation Matrices Implementation with NumPy
  3. Manipulate JSON with Python Dynamic Object
  4. Converting between Snake Case and Camel Case

Usage

λ python main.py  --help
Usage: main.py [OPTIONS] COMMAND [ARGS]...

Options:
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Commands:
  b3dm     convert gltf to b3dm
  glb      convert gltf to glb
  tileset  split gltf model to 3d tiles

Glb

λ python main.py glb --help
Usage: main.py glb [OPTIONS] FIN [FOUT]

  convert gltf to glb

Arguments:
  FIN     input gltf path  [required]
  [FOUT]  Optional output glb path (defaults to the path of the input file)

Options:
  --help  Show this message and exit.

b3dm

 λ python main.py b3dm --help
Usage: main.py b3dm [OPTIONS] FIN [FOUT]

  convert gltf to b3dm

Arguments:
  FIN     input gltf path  [required]
  [FOUT]  Optional output b3dm path(defaults to the path of the input file)

Options:
  --help  Show this message and exit.

3d tiles

 λ python main.py tileset --help
Usage: main.py tileset [OPTIONS] FIN [FOUT]

  split gltf model to 3d tiles

Arguments:
  FIN     input gltf path  [required]
  [FOUT]  Optional output glb path (defaults to the path of the input file)

Options:
  --measure [meter|foot]  measure of attributes in gltf buffers  [default:
                          Measure.METER]
  --up [y|z]              up direction used in gltf coordinate system
                          [default: Axis.Y]
  --help                  Show this message and exit.

Support:

jason.xu jasonxu