-
From the following example code on generating a point cloud:
Can the color be obtained from the color frame, using the texture coordinates? I tried the following as an example:
But it does not seem to work... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I forgot to add the main loop, where the texture coordinate comes from:
|
Beta Was this translation helpful? Give feedback.
-
oops, instead of unsigned short which is 16 bits, I should use unsigned char or uint8_t |
Beta Was this translation helpful? Give feedback.
-
and another oops, I forgot to multiply the ix and iy offsets by 3
|
Beta Was this translation helpful? Give feedback.
and another oops, I forgot to multiply the ix and iy offsets by 3
so this works and gets the right color values: