You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
This is now understood and was due to changes both in GLTF (minor API change) and JSROOT (looks more like a bug in version 7.0). I've pushed fixes but for the ROOT part, it's only hardcoding version 7.6.1, which is the last one working.
Starting with 7.0.0, it seems that materials are not converted anymore when calling build on the object acquired form JSROOT.require('geom'). To be further investigated
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.Now, what should be the elapsed time for the whole procedure? Or is it really stuck?
Thank you for your help,
Davide
The text was updated successfully, but these errors were encountered: