https://github.com/sofianehamlaoui/bd3m2gltf
A script that converts bd3m files into glTF format, supporting the containing .glb & .bin if available.
https://github.com/sofianehamlaoui/bd3m2gltf
Last synced: 7 months ago
JSON representation
A script that converts bd3m files into glTF format, supporting the containing .glb & .bin if available.
- Host: GitHub
- URL: https://github.com/sofianehamlaoui/bd3m2gltf
- Owner: SofianeHamlaoui
- Created: 2023-07-05T09:27:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T09:41:23.000Z (over 2 years ago)
- Last Synced: 2025-01-18T23:44:14.672Z (9 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bd3m to glTF Converter
This script converts **bd3m** ( 3D Tiles ) files into **glTF** format, supporting the containing **.glb** & **.bin** if available.This works with the help of the [pygltflib python module](https://gitlab.com/Epic_Wink/pygltflib)
#### Requirements :
```
pip install pygltflib
```#### Usage :
```
usage: b3dm2glTF.py [-h] [-i INPUT] [-o OUTPUT]options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input file or folder name
-o OUTPUT, --output OUTPUT
Output file or folder name
```
#### Results :This script will output the desired **.gltf** file and a **.json** file that contains the b3dm header and truncates it up until the start of the glTF header, with that the **.glb** and **.bin** if available on the 3D Tiles file.
