Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.7 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.7 KB

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