Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leon/docker-gltf-to-udsz
Docker container for converting gltf files into apple usdz quicklook files
https://github.com/leon/docker-gltf-to-udsz
docker gltf gltf2 usdz
Last synced: 9 days ago
JSON representation
Docker container for converting gltf files into apple usdz quicklook files
- Host: GitHub
- URL: https://github.com/leon/docker-gltf-to-udsz
- Owner: leon
- Created: 2019-12-15T13:41:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-13T20:38:29.000Z (about 3 years ago)
- Last Synced: 2024-04-14T19:12:29.254Z (7 months ago)
- Topics: docker, gltf, gltf2, usdz
- Language: Dockerfile
- Size: 3.43 MB
- Stars: 47
- Watchers: 7
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convert .glb and .gltf into apples .usdz quicklook files.
It uses this repo under the hood.
https://github.com/google/usd_from_gltf#compatibility# Run
Using helper script that will output a usdz file with same name as input
Via Npm or yarn
```
npm start examples/exterior.glb
yarn start examples/exterior.glb
```Directly via the shellscript
```
./start.sh examples/exterior.glb
```Using raw docker command
```
docker run \
--rm \
-v $(PWD):/usr/app \
leon/usd-from-gltf:latest \
examples/exterior.glb \
examples/exterior.usdz# or on one line
docker run --rm -v $(PWD):/usr/app leon/usd-from-gltf:latest examples/exterior.glb examples/exterior.usdz
```# Batch Run
To be able to batch convert files, place all your glb files in a directory.
then `cd` to that directory,
now run the `batch.sh` file from that directory.
it will pick up the directory that you started it from and convert all the .glb files to .usdz```
cd examples
../batch.sh
```# Build
```
./build.sh
```