Hello, I am trying to export a gltf File but the goal is to have only one file without the .bin
BABYLON.GLTF2Export.GLTFAsync(scene, "newName").then((gltf) => {
let blob = gltf.glTFFiles["myGltf" + ".gltf"];
let bin = gltf.glTFFiles["myGltf" + ".bin"];
gltf.downloadFiles();
}
It is possible to download the bin and the gltf file and both can be used together. My goal is to make only one file by encoding the bin and putting it into uri-field in the gltf file. It has probably to be a data:application/octet-stream;base64, encoding. I don’t know how to approach or solve it after few failed attemps. I tried btoa() for encoding.
We don’t have an option for base64 encoded single-file glTF. It probably can be added. Why do you want this? It’s much less efficient than using a GLB.