Skip to content

Docker container for converting gltf files into apple usdz quicklook files

Notifications You must be signed in to change notification settings

leon/docker-gltf-to-udsz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Docker container for converting gltf files into apple usdz quicklook files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published