For a project we’re developing at the moment, involving the BABYLON.GLTF2Export functionality, we’re wondering if it is available out-of-the-box (can’t find a lot of this exporter in docs or the web):
to export only specific meshes in the scene;
to overwrite/rewrite the exported file, in order to keep the same name while avoiding the population of the “downloads” folder with successive annoying (suffixed with a number) files
I’m a bit confused on what “same name” means here. Do you mean changing the file name? That’s possible too. Or do you mean changing something inside the generated file? Since the GLTF format is a defined standard glTF™ 2.0 Specification (khronos.org) that’s also possible too.
First, thank you for your immediate response. I’ll take a closer look to the docs.
About the same name, I’d like to overwrite the same file (same name) again and again, that is, calling BABYLON.GLTF2Export.GLBAsync(scene, assetName) white the same assetName, but not having then a series of files: assetName(1).glb, assetName(2).glb, …
Is there any way to “overwrite flag” that let me do that or I need to delete first the previous assetName.glb file?
Another question I’d like to ask you, related with this same subject, once it’s clear that working with local folders is avoided in order to not mess with security issues: How can I manage to upload the gltf/glb data (file I mean) to a public web server location? Is it in fact even possible?