conv3d cli
It’s a cli tool to convert models in bulk into the .glb format for easier use with three.js.
It can optionally output .tsx files for use with r3f as well.
For now the CLI supports: FBX, GLTF, OBJ as input and GLB + TSX as output.
Installation:
npm i -g conv3d
Further Info
NPM:
https://www.npmjs.com/package/conv3d
Code is open-source at Github:
https://github.com/trebeljahr/conv3d
4 Likes
it does bulk conversions, i.e. you can point it at a directory and it can recursively convert everything within it.
Also it converts more formats because it uses different tools like obj2gltf, fbx2gltf, and gltf-pipeline under the hood. So input can be FBX, OBJ, or GLTF and you get out GLB (+ TSX if you specify that).
gltfjsx “only” handles single files from gltf and doesn’t do other formats.
In a way conv3d is just a fancy way to glue together the other tools mentioned above and make them work with whole folders at a time.