An exporter for glTF 2.0 assets.
GLTFExporter supports the following glTF 2.0 extension:
const exporter = new v3d.GLTFExporter();
exporter.parse(
app.scene,
function(gltf) {
console.log(gltf);
},
function(error) {
console.log('glTF export failed!');
},
options
);
Creates a new GLTFExporter.
false
.true
.false
.Infinity
.userData.gltfExtensions
property. Default is false
.Export scene/objects to to glTF 2.0 format.
Export scenes/objects to to glTF 2.0 format.
Similar to .parse() method, but returns a promise value instead of calling callbacks.
For more info on how to obtain the source code of this module see this page.