Skip to content

Docker image for performing various file conversion tasks.

License

Notifications You must be signed in to change notification settings

Schlomoh/python-xrutils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter: @plattarglobal License

Python XRUtils is a docker image that contains a number of pre-built tools useful for 3D/2D file conversions. These tools typically take a long time to build from source. This image can serve as a useful base for other applications. Check out the Plattar dockerhub repository for the latest pre-built images.


About

  • Convert GLTF2 models into USDZ
  • Convert FBX models into GLTF2
  • Check image tracking quality, useful for assigning as a marker image
  • Convert images into BASIS format

Quickstart

Prebuilt containers are available from Plattar dockerhub repository.

Building/Running Locally
# to build a local version of this repository run the following script
docker-compose -f live.yml build

# once built, run the following script to bring up the container
docker-compose -f live.yml up

# once the container is running, the user can exec into it with the following command
docker exec -it plattar-xrutils /bin/sh

# to clean everything run the following script as follows
sh nuke.sh

Usage

Built container places all executables in the PATH environment and can be accessed as follows.

# Use Google ARCore arcoreimg tool
arcoreimg eval-img --input_image_path=$IMAGE_PATH

# Use Assimp assimp tool
assimp export $FROM_MODEL_FILE_PATH $TO_MODEL_FILE_PATH

# Use Facebook fbx2gltf tool
fbx2gltf --verbose --input $FROM_MODEL_FILE_PATH --output $TO_MODEL_FILE_PATH

# Use Google USD from GLTF tool
usd_from_gltf $FROM_MODEL_FILE_PATH $TO_MODEL_FILE_PATH

# Use Kcoley GLTF to USD tool (python)
python $GLTF2USD_PY_PATH -v -g $FROM_MODEL_FILE_PATH -o $TO_MODEL_FILE_PATH

# Use Basis Universal tool
basisu $FROM_IMAGE_FILE_PATH

Acknowledgements

This tool relies on the following open source projects.

About

Docker image for performing various file conversion tasks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 92.2%
  • Shell 7.8%