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

Save mesh with color texture using save_to_ply() function #9531

Closed
MrTitusZ opened this issue Jul 30, 2021 · 6 comments
Closed

Save mesh with color texture using save_to_ply() function #9531

MrTitusZ opened this issue Jul 30, 2021 · 6 comments

Comments

@MrTitusZ
Copy link


Required Info
Camera Model D415
Firmware Version 05.12.10.00
Operating System & Version Windows 10
Platform PC
SDK Version 2.48.0.3381
Language python
Segment others

Issue Description

I was trying to replicate the "export_ply_example.py" from the python examples: https://github.com/IntelRealSense/librealsense/blob/development/wrappers/python/examples/export_ply_example.py

My gole is to export a ply file with color texture from one frame.
In the example file it uses rs.colorizer() fuction witch using the depth cam texture.
In line 27 it is saying that "texture can be obtained from color or infrared stream".
I tried to map the color frame to the point cloud, i wrote the documentation and tried to implement the c++ pointcloud example , but nothing works.

How can I get the color texture and how can i assign it to the point clod properly?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jul 30, 2021

Hi @MrTitusZ Exporting a ply with color in Python has been shown to be problematic in past cases. If you are okay with exporting a color ply without normals then the export_to_ply based Python script in the link below may suit your needs.

#6194 (comment)

@MrTitusZ MrTitusZ changed the title Export mesh with color texture using save_to_ply() function Save mesh with color texture using save_to_ply() function Jul 30, 2021
@MrTitusZ
Copy link
Author

Hello @MartyG-RealSense! I am aware of the export_to_ply function. My problem with the export_to_ply function is that with it I lose the option to set the encoding type and the normal calculation witch are mandatory for me.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jul 30, 2021

Any investigation about saving a color ply with Python always ends up coming back to the export_to_ply example linked to above unfortunately, as it is the only confirmed example that works. This is demonstrated by the save_to_ply example script in the link below, which works but did not export color for the script's creator. You are welcome to try it yourself to see whether you get different results.

#7747 (comment)

@MartyG-RealSense
Copy link
Collaborator

Hi @MrTitusZ Do you require further assistance with this case, please? Thanks!

@MrTitusZ
Copy link
Author

MrTitusZ commented Aug 9, 2021

Hello, if there is no solution to give a texture from a colored frame to the save_to_ply() function, then I do not require further assisstance.
Thank you for your help! :)

@MartyG-RealSense
Copy link
Collaborator

I researched this case again carefully but still could not find any further resources that would enable creating a color ply in Python with save_to_ply instead of export_to_ply. So I will close the case. Thanks very much for your understanding!

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