An exporter for USDZ assets.
const usdzExporter = new v3d.USDZExporter();
const dataURL = await new Promise(function(resolve, reject) {
usdzExporter.parse(app.scene).then(function(value) {
const dataUrl = URL.createObjectURL(new Blob([value], { type: 'application/octet-stream' }));
resolve(dataUrl);
}, function(reason) {
console.error('USDZ export failed: ' + reason);
reject(reason);
});
});
Creates a new USDZExporter.
true
.1024
.Generates a .usdz output from the input (scene or objects).
For more info on how to obtain the source code of this module see this page.