zmbx2gltf
v0.2.1
Published
A tool and a library to convert MecaBricks .zmbx models to GlTF
Downloads
7
Readme
zmbx2gltf
a tool and a library to convert MecaBricks .zmbx files to GlTF
Node.js usage
import { convertZmbxToGltf } from "zmbx2gltf";
import { readFile, writeFile } from "fs/promises";
async function main() {
const inputFile = await readFile("input.zmbx");
const gltf = await convertZmbxToGltf(inputFile);
await writeFile("output.gltf", JSON.stringify(gltf));
}
CLI usage
zmbx2gltf <input.zmbx> <output.gltf>
Browser usage
Global Zmbx2Gltf.convertZmbxToGltf
and Zmbx2Gltf.convertMbxToGltf
functions.