/FBX2GLB-Batch-Convert-Optimizer

A Simple NodeJS App to Batch Convert FBX Files to GLB and Fast Optimization

Primary LanguageJavaScript



NodeJS APP to Batch Convert fbx files to glb and Fast Optimization (Draco -- Texture Compression).

Setup NodeJS

  • Install NodeJS from https://nodejs.org/en
  • Download or Clone this Repository
  • Open a Terminal (Usign for example VSCode)
  • RUN: npm install (To Install NPM Libraries)

Setup Your FBX Files

  • Copy your FBX Files in "_input" directory, also you can use subdirectories

Convert FBX to GLB

  • RUN: node convert.js
  • Your Files will be converted in "_output" directory using the same structure
  • View the log and wait till finished

Optimize GLB Files

  • RUN: node optimize.mjs
  • Your files located in "_output" directory will be optimized to "_optimized" folder
  • You can tweak optimize.mjs code to adapt it to your needs (ie. const imageFormat = 'webp'; const imageSize = 512;)
  • View the log and wait till finished

This APP uses FBX2GLTF Library: https://www.npmjs.com/package/fbx2gltf

and GLTF-Transform: https://gltf-transform.dev/