Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schlomoh/usdz-converter
Python gltf to usdz converter using docker image plattar/xrutils
https://github.com/schlomoh/usdz-converter
3d docker gltf gltf-to-usdz pipeline python usdz
Last synced: 27 days ago
JSON representation
Python gltf to usdz converter using docker image plattar/xrutils
- Host: GitHub
- URL: https://github.com/schlomoh/usdz-converter
- Owner: Schlomoh
- Created: 2022-04-19T20:39:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-22T17:17:28.000Z (about 1 year ago)
- Last Synced: 2023-10-22T18:31:15.075Z (about 1 year ago)
- Topics: 3d, docker, gltf, gltf-to-usdz, pipeline, python, usdz
- Language: Python
- Homepage: https://moritzbecker.de/projects/usdzConverter
- Size: 126 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# glTF to USDZ converter
Python gltf to usdz converter using docker image plattar/xrutils.This can convert `.gltf` and `.glb` files into apples `.usdz` file type using googles available usd_from_gltf.
## Installation
A requirements.txt is included and can be used to install the necessary requirements.
```shell
pip install -r requirements.txt
```
or (if python3 and pip3 are not the default)
```shell
pip3 install -r requirements.txt
```Also docker has to be installed on the host machine. If you're using this tool on a windows machine you will have to activate the WSL option
in docker and install the WSL extension for windows.## Usage
Run the main.py script with the argument `-h` to see the the command info.
On the first run the script will automatically pull the docker image into your docker environment.
For a single file conversion simply type:
```shell
python main.py path/to/input/file.gltf
```
This will create a `_out` folder inside the projects root directory.You can also define a custom output directory by using the `-o ` flag:
```shell
python main.py path/to/input/file.gltf -o /path/to/output/dir
```When defining the input you can also set the parameter to a directory containing gltf files. By default every directory gets read out recursively
,so including all of its subdirectories.To disable this set the `-r` flag to `False`.