GetColor missmatch color #9637
-
Hi! I wanted to display a point cloud using deck.gl, so I followed the example: https://deck.gl/examples/point-cloud-layer. And I got exactly what I expected. But now I'm trying to use the color from my LAZ file, and I've tried a lot of things but still haven't found the solution... Here is my code for the layer:
I checked my LAZ file in CloudCompare to verify that my file does indeed have colors, and it does. Here are two pictures: one showing what I currently get and one showing what I expect. Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi everyone, I finally found a solution:
Okay, so the fact is that to get colors from a LAS/LAZ file, you have to inform the loader about the colorDepth. After this, you can iterate through your LAS data and simply provide the color for each point. I think my version isn't the optimal one, but it works. I will try to optimize it now. Hope this can help you if you've been wondering about this subject. |
Beta Was this translation helpful? Give feedback.
Hi everyone, I finally found a solution: