forked from andrewpap22/root_cern-To_gltf-Exporter
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi,
I'm trying to use this tool to get a working GLTF file to be used with Phoenix.
I was trying to reproduce the LHCb.gltf following the procedure shown, but it seems the process get stuck when deduplicating materials.
sync function convert_geometry(obj3d, name, body) {
body.innerHTML += "<h2>Exporting to GLTF</h2>"
await forceDisplay()
const exporter = new THREE.GLTFExporter;
let gltf = await new Promise(resolve =>
exporter.parse(obj3d, resolve, {'binary':false})
)
body.innerHTML += "<h2>Finish!</h2>"
// json output
body.innerHTML += "<h2>Deduplicating data in GLTF</h2>"
await forceDisplay()
gltf = await deduplicate(gltf, body);
const fileToSave = new Blob([JSON.stringify(gltf)], {
type: 'application/json',
name: name
});
saveAs(fileToSave, name);
}
Now, what should be the elapsed time for the whole procedure? Or is it really stuck?
Thank you for your help,
Davide
Metadata
Metadata
Assignees
Labels
No labels