-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Pointcloud : Texture coordinates are always {0.0, 0.0} #900
Comments
Hi @tchapi Can you try: auto color = frames.get_color_frame();
pc.map_to(color);
points = pc.calculate(depth); Is the |
Hi @dorodnic and thanks for your answer. |
Ok, thanks clarifying. Do you see the option for texture mapping in the RealSense Viewer (3D tab)? What about a Windows machine with the same SR300 camera? |
I can open the RealSense Viewer on a Mac with the same camera and the pointcloud (3D tab) seems correct (with color, correctly aligned). I think the camera works well. As well, when I use the "legacy" way of mapping, it works well (I get the color for each point) :
I'm thinking that something is missing in the |
Hi @dorodnic - do you think the PR from @AnnaRomanov just above correctly pinpoints the problem ? One of her commits seem to fix it but I'm not sure I understand the underlying problem and how it was effectively fixed thanks ! |
Hey, I might have an idea why this is happening. I just stumbled upon an error occurring when one calls pc.map_to(color). I'm using SR300
I'm getting the following error message: "RealSense error calling rs2_set_option(options:000002592B3D2B10, option:35, value:5): invalid enum value for argument "option"" this error references the call in rs_processing.hpp and RS2_OPTION_TEXTURE_SOURCE |
Hi @tchapi The commit should be split into @radikalliberal Please try rebuilding the library from source and update if problem still occurs. |
Hi @dorodnic Do you mean that doing :
(two calls to calculate) should solve the problem ? |
@tchapi Hello, have you tried to map the color pixel to the 3D point cloud in python? I found difficulty in mapping the texture coordinates to the color image, and then back to the 3D vertice coordinates. |
No I haven't, I'm using the C/C++ lib. For me, doing two calls to the
hope it helps |
When using the pointcloud example with a SR300, the texture coordinates are {0.0, 0.0} all the time, so I cannot retrieve the color information from the underlying color frame.
If I project the points myself, I manage to get the color information (though it's not aligned, etc)
Is this normal ? Do I miss a step ? Thanks a lot !
The text was updated successfully, but these errors were encountered: