0.0.3 • Published 1 year ago
vox-gltf v0.0.3
vox-gltf
Modern vox to gltf converter. Works with version: 200 vox files. Easy peasy.
Install
npm i vox-gltfUsage
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()