Skip to content

A 3D File Converter running in Docker that converts from OBJ|GLTF|FBX to OBJ|GLTF|FBX|GLB|DXF

License

Notifications You must be signed in to change notification settings

elfrank/3d-file-converter

Repository files navigation

3d-file-converter

Maintainability Test Coverage

A CLI-based 3D File Exporter and Converter powered by Blender.

Setup

# install Docker: https://docs.docker.com/get-docker/

# clone Repo
git clone [email protected]:elfrank/3d-file-converter.git

# generate .env file
touch .env && echo "DOCKER_IMAGE_NAME=3d-file-converter" >> .env

# install dependencies
nvm use
npm install

# build the docker image
scripts/docker-build.sh

Usage

Start the Container

scripts/docker-start.sh

Run the Scripts

# usage
node scripts/node.js/run.js -h

# convert from obj to fbx
node scripts/node.js/run.js -i data/fixtures/teapot/teapot.obj -o data/output/teapot.fbx

# convert from fbx to obj
node scripts/node.js/run.js -i data/fixtures/teapot/teapot.fbx -o data/output/teapot.obj

Formats supported

  • Input formats: obj, fbx, gltf
  • Output formats: obj, fbx, gltf, glb, dxf

Notes

  • It probably makes sense to use a python script as the entrypoint instead of a node.js script (future work?).

Resources