a tool and a library to convert MecaBricks .zmbx files to GlTF
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));
}
zmbx2gltf <input.zmbx> <output.gltf>
Global Zmbx2Gltf.convertZmbxToGltf
and Zmbx2Gltf.convertMbxToGltf
functions.