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

PCLVisualizer cannot display TextureMesh #6099

Open
LeeXujie opened this issue Aug 5, 2024 · 5 comments
Open

PCLVisualizer cannot display TextureMesh #6099

LeeXujie opened this issue Aug 5, 2024 · 5 comments

Comments

@LeeXujie
Copy link

LeeXujie commented Aug 5, 2024

图片

When I use pcl::visualization::PCLVisualizer to addTextureMesh, it will report the error above and only display a PolygonMesh on visualizer as bellow.

图片

@LeeXujie LeeXujie added kind: bug Type of issue status: triage Labels incomplete labels Aug 5, 2024
@LeeXujie
Copy link
Author

LeeXujie commented Aug 5, 2024

Oh, my system is ubuntu 20.04 and pcl version is 1.10

@mvieth
Copy link
Member

mvieth commented Aug 5, 2024

@LeeXujie Can you upload the TextureMesh you used as a .obj file?

@mvieth mvieth added module: visualization and removed status: triage Labels incomplete labels Aug 5, 2024
@LeeXujie
Copy link
Author

LeeXujie commented Aug 5, 2024

@mvieth > @LeeXujie Can you upload the TextureMesh you used as a .obj file?

I use this project and add some codes at the end of texture_mapping.cpp for visualization, as shown in the following figure. You can clone this project, build and run texture_mapping, it can generate TextureMesh and output an .obj file, thanks!

图片

@mvieth
Copy link
Member

mvieth commented Aug 5, 2024

@LeeXujie As far as I was able to find out, addTextureMesh uses a VTK method (MapDataArrayToMultiTextureAttribute) that is only properly implemented in VTK 8.2.0 and newer (see https://gitlab.kitware.com/vtk/vtk/-/commit/bbc96ed3bb95dde45f5fd4e7f932929fe5c667bd ). So if you want to use addTextureMesh, the only recommendation I can give you is to use VTK 9 and PCL 1.12.1.

@LeeXujie
Copy link
Author

LeeXujie commented Aug 6, 2024

@mvieth Okay, I'll think of other ways. Thank you for your reply.

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