Need help with the .glb exporter

BABYLON.GLTF2Export.GLBAsync(scene, "fileName").then((glb) => {
glb.downloadFiles(); };

this is what it’s says in the documentation but how do i get the .glb data value?

currently all i get is [object Object]

This is the data returned by the promises:

    BABYLON.GLTF2Export.GLBAsync(scene, 'test').then(gltf => {
    var blob = new Blob ( [ //pass in here ], { type : "octet/stream" } );
     var xhr = new XMLHttpRequest();"POST", "/glb", true);
        xhr.setRequestHeader('Content-Type', 'application/octet-stream');


please see the above, i’m trying to access the object.values() or the data that holds the geometry for the mesh. Sorry but i can’t seem to “get this”.

it’s for a project i am working on to try and turn babylonjs “web” in what appears to be “desktop” applications using pythons flask. so far i have been able to POST back .babylon, screenshots etc and save them out to local file’s on the desktop but i’m struggling with this.

and here the github: GitHub - eodowd/asseteditor: A 3d asset / level editor


Good job :slight_smile:

1 Like