objimg
v1.9.3
Published
Compress OBJ/MTL 3D models into lightweights PNGs ready to be imported into (Web)GL and THREE-JS
Downloads
40
Maintainers
Readme
OBJIMG - Command Line Interface
Install the npm package by typing this command in the terminal:
$ npm install -g objimg
then use the objimg
command to generate the PNG image from your model:
# generate a png in the same directory with the same name finishing by *.png
objimg path/to/model.obj
# generate a png in a special path with defined name
objimg -o path/to/output.png path/to/model.obj
Options
- -o: (--output) choose the output path and file name for the PNG
- -v: (--verbose) enable the verbose mode, it will logs informations along generating
- -b: (--brut) disable image optimization with OptiPNG
How to use the generated image after that?
After having generated the PNG, you'll want to use it... No worries, all informations are on the Github page of the main script