https://github.com/xuzhusheng/gltf-to-3d-tiles
Convert glTF model to Glb, b3dm and 3D tiles format.
https://github.com/xuzhusheng/gltf-to-3d-tiles
3d-tiles 3dtiles b3dm glb gltf tile-set tileset
Last synced: 10 days ago
JSON representation
Convert glTF model to Glb, b3dm and 3D tiles format.
- Host: GitHub
- URL: https://github.com/xuzhusheng/gltf-to-3d-tiles
- Owner: xuzhusheng
- License: mit
- Created: 2021-11-16T03:42:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T03:50:00.000Z (about 1 year ago)
- Last Synced: 2024-11-07T23:04:29.032Z (6 months ago)
- Topics: 3d-tiles, 3dtiles, b3dm, glb, gltf, tile-set, tileset
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 135
- Watchers: 3
- Forks: 39
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-3d-tiles - gltf-to-3d-tiles - Convert glTF model to Glb, b3dm or 3d tiles format. (Tile creation (Community))
README
# 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](https://xuzhusheng.medium.com/constructs-bounding-volume-hierarchy-bvh-with-surface-area-heuristic-sah-in-python-89c14afb2f03)
2. [3D Affine Transformation Matrices Implementation with NumPy](https://xuzhusheng.medium.com/3d-affine-transformation-matrices-implementation-with-numpy-57f92058403c)
3. [Manipulate JSON with Python Dynamic Object](https://xuzhusheng.medium.com/manipulate-json-with-python-dynamic-object-fe885394d17f)
4. [Converting between Snake Case and Camel Case](https://xuzhusheng.medium.com/converting-between-naming-convention-with-python-2d91032bd0dc)***
## Usage
```text
λ 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
```text
λ 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
```text
λ 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
```text
λ 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: