pcl icon indicating copy to clipboard operation
pcl copied to clipboard

[TextureMapping] some isuue about texture

Open Q-an opened this issue 1 year ago • 4 comments

I tried using textureMeshwithMultipleCameras(mesh, my_cams) in pcl::TextureMappingpcl::PointXYZ, but I found that mesh.tex_coord_indices was not initialized and caused an error when saving the obj file using pcl::io::saveOBJFile(). How to solve this issue?

Q-an avatar Dec 22 '24 11:12 Q-an

Hi, I will try to find a solution for this problem when I have time, until then, please try if this works in PCL 1.12.1.

mvieth avatar Dec 25 '24 13:12 mvieth

Hi, I will try to find a solution for this problem when I have time, until then, please try if this works in PCL 1.12.1.

Thanks! I used the code from the saveOBJFile function in version 1.12.1 to populate the mesh.tex_coord_indices, and it ran successfully. By the way, when I switched to version 1.21.1, I encountered an error message stating, 'Unable to locate the program entry point ?estimateProjectionMatrix@?$OrganizedNeighbor@UPointXYZ@pcl@@@search@pcl@@QEAAXXZ in the dynamic link library texture.exe,' which seemed to be related to the code utilizing pcl::TextureMappingpcl::PointXYZ.What might be causeing this isuue?

Q-an avatar Dec 26 '24 07:12 Q-an

By the way, when I switched to version 1.21.1, I encountered an error message stating, 'Unable to locate the program entry point ?estimateProjectionMatrix@?$OrganizedNeighbor@UPointXYZ@pcl@@@search@pcl@@QEAAXXZ in the dynamic link library texture.exe,' which seemed to be related to the code utilizing pcl::TextureMappingpcl::PointXYZ.What might be causeing this isuue?

Make sure you only have PCL 1.12.1 installed, and you have fully removed all other PCL versions. Then delete all temporary build files from your project, and compile from scratch. Finally, make sure you link to the pcl_search library.

mvieth avatar Dec 27 '24 09:12 mvieth

By the way, when I switched to version 1.21.1, I encountered an error message stating, 'Unable to locate the program entry point ?estimateProjectionMatrix@?$OrganizedNeighbor@UPointXYZ@pcl@@@search@pcl@@QEAAXXZ in the dynamic link library texture.exe,' which seemed to be related to the code utilizing pcl::TextureMappingpcl::PointXYZ.What might be causeing this isuue?

Make sure you only have PCL 1.12.1 installed, and you have fully removed all other PCL versions. Then delete all temporary build files from your project, and compile from scratch. Finally, make sure you link to the pcl_search library.

OK. Thank you.

Q-an avatar Dec 28 '24 06:12 Q-an