Headless webgl renderer thumbnail image renderer for 3d files : stl, obj, ctm
This is a command line thumbnail image renderer of 3d files, using webgl
as a command line tool (typical use case)
npm install -g --production usco/usco-headless-renderer
as a module
npm install usco/usco-headless-renderer
You also need to install a few packages on your system (needed for headless webgl rendering): for Debian/Ubuntu these are :
- sudo apt-get install pkg-config
- sudo apt-get install xvfb
- sudo apt-get install libx11-dev
- sudo apt-get install libxi-dev
- sudo apt-get install libgl1-mesa-dev
usco-headless-renderer input=<PATH-TO-FILE> output=<PATH-TO-OUTPUT.png> resolution=320x240 cameraPosition=[75,75,145] verbose=true
IMPORTANT !!! do NOT use spaces when defining the resolution or cameraPosition parameters, or things will break !
PRs accepted.
Small note: If editing the Readme, please conform to the standard-readme specification.
The MIT License (MIT) (unless specified otherwise)