Skip to content

Error when loading .glb files. #10

Open

Description

@Lucalme

I've notived that when using the live demo on HF or even when running locally, the app crashes pretty fast when loading a .glb file.
This should not be so much of a issue, since converting .glb to .obj is relatively easy. but I thought it was worth noting.

Activity

  1. Lucalme commented on Aug 20, 2024

    @Lucalme
    Author

    File "E:\Softs\AI Stuff\MeshAnythingV2\mesh_to_pc.py", line 28, in export_to_watertight
    scaled_vertices, to_orig_center, to_orig_scale = normalize_vertices(normalized_mesh.vertices)
    AttributeError: 'Scene' object has no attribute 'vertices'

  2. Zeina-T commented on Sep 5, 2024

    @Zeina-T

    Hi @Lucalme I also faced this issue and solved it by changing this line and adding force='mesh' to force extract the mesh from the scene.
    So the line becomes: input_mesh = trimesh.load(input_3d, force="mesh")

    Hope this helps!

  3. kexul commented on Dec 8, 2024

    @kexul

    Hi @Lucalme I also faced this issue and solved it by changing this line and adding force='mesh' to force extract the mesh from the scene. So the line becomes: input_mesh = trimesh.load(input_3d, force="mesh")

    Hope this helps!

    Thanks, worked like a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions