surfemb icon indicating copy to clipboard operation
surfemb copied to clipboard

'ambient_occlusion' filter throws core dumped for tless models

Open praveen5733 opened this issue 2 years ago • 6 comments

When I run the surface_samples_remesh_visible script for tless objects the processing fails with

Aborted (core dumped)

did anyone face the same issue or did I miss some steps before running the script?

praveen5733 avatar Jun 23 '22 08:06 praveen5733

@praveen5733 I have the same problem. Did you solve the problem??

smoothumut avatar Aug 31 '22 15:08 smoothumut

I have the same problem too. How did you slove it?

Jianqiuer avatar Feb 24 '23 07:02 Jianqiuer

I'm having the same problem

domef avatar Aug 08 '23 15:08 domef

I have solved it but dont remember what the exact problem is, I think it was about pymeshlab versioning. please try previous versions. One of them doesnt give that problem.

smoothumut avatar Aug 09 '23 05:08 smoothumut

I already tried various versions, I will try more versions and see if it works.

domef avatar Aug 09 '23 05:08 domef

Here was my workaround.. I hope it will work for you too ... ... for mesh_fp in tqdm(list(mesh_folder.glob('*.ply'))): remesh_fp = remesh_folder / mesh_fp.name

    ms = pymeshlab.MeshSet()
    ms.load_new_mesh(str(mesh_fp.absolute()))
    ms.repair_non_manifold_edges_by_removing_faces()
    ms.subdivision_surfaces_midpoint(iterations=10, threshold=pymeshlab.Percentage(5.0))

    ### There is a note here
    ms.ambient_occlusion(occmode='per-Face (deprecated)', reqviews=256)
    ### -------
    face_quality_array = ms.current_mesh().face_quality_array()
    minq = face_quality_array.min()

... ...

Here is my note: The ambient_occlusion works in this way but after the method that contains that line ends, somehow the app is closed, But it works

the pymeshlab version is pymeshlab==0.2 I have made it work in windows, but I guess It would work in ubuntu also.

smoothumut avatar Aug 09 '23 06:08 smoothumut