Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import_cameras_for_active_rasters_from_file cannot open the file #54

Closed
ramazanabd opened this issue Feb 8, 2021 · 7 comments
Closed

Comments

@ramazanabd
Copy link

I want import bundle file with camera matrices by using 'import_cameras_for_active_rasters_from_file', but ms.apply_filter('import_cameras_for_active_rasters_from_file', importfile='.out') gives an error by saying "No file to open"

@alemuntoni
Copy link
Member

Could be an issue related to the parameter type used for input files.
Could you please share the .out file (and if possible the mesh and the rasters)? They would help on finding the issue.

@ramazanabd
Copy link
Author

Thanks for the quick reply!
I have followed the same procedure in Meshlab for texturing and it accepts the cameras.out properly. It is just PyMeshlab is not accepting.
I attached the .out file in txt format.

@ramazanabd
Copy link
Author

cameras.txt

@ramazanabd
Copy link
Author

I seem to overcame the problem by not uploading camera intrinsics separately in bundler format but with rasters and mesh in mlp format. However, I came across another problem with ms.apply_filter('parameterization__texturing_from_registered_rasters')
It gives an error:

pymeshlab.pmeshlab.PyMeshLabException: Failed to apply filter: parameterization__texturing_from_registered_rasters
Details: Fatal error: glContext not initialized

Could you please also check on that?

@alemuntoni
Copy link
Member

Sorry for the late reply. The issue glContext not initialized is the same of #43. It is related to how meshlab code is organized for opengl routines, which highly depend on meshlab GUI (which is not present on pymeshlab for obvious reasons).

@alemuntoni
Copy link
Member

Solved in the last commit. It will be available in the next version of pymeshlab!

@ramazanabd
Copy link
Author

Thanks a lot!

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

No branches or pull requests

2 participants