0.0.3 • Published 9 months ago

vox-gltf v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

vox-gltf

Modern vox to gltf converter. Works with version: 200 vox files. Easy peasy.

Install

npm i vox-gltf

Usage

import { voxGltf } from 'vox-gltf'

voxGltf({
  input: './models/bush-3.vox',
  output: './models/bush-3.gltf',
})
import { voxGltf } from 'vox-gltf'

async function convertVoxFiles() {
  const conversions = [
    // You should provide absolute paths to your input and output files.
    { input: './models/kitten.vox', output: './models/kitten.gltf' },
    { input: './models/jetpack.vox', output: './models/jetpack.gltf' },
  ]

  for (const conversion of conversions) {
    await voxGltf(conversion)
  }
}

convertVoxFiles()