Skip to content

conversion stuck #13

@davzuliani

Description

@davzuliani

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions