cnr-isti-vclab / PyMeshLab

The open source mesh processing python library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with compute_scalar_ambient_occlusion_gpu()

AsmaBRZ opened this issue · comments

Hello, I have installed pymeshlab 2013.12. Here is a sample code that I have tried:
import pymeshlab ms = pymeshlab.MeshSet() ms.load_new_mesh("object1.ply') ms.compute_scalar_ambient_occlusion_gpu()

The function compute_scalar_ambient_occlusion_gpu gives Abandon (core dumped)

ps: I have tested different parameters of the functions and I got always the same error. Also, the other functions of pymeshlab work well. I only struggle with compute_scalar_ambient_occlusion_gpu.

Any help ?

Thank you

This issue has been automatically marked as stale because it has not had recent activity. The resources of the VCLab team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the last release of PyMeshLab, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

The gpu version, as it says the filter name, needs an environment where an opengl context can be created and executed. It may fail when this is not possible.
Anyway, in the latest version of pymeshlab there is an alternative to the gpu ambient occlusion (https://pymeshlab.readthedocs.io/en/latest/filter_list.html#compute_scalar_ambient_occlusion) that does work on cpu.