Page 1 of 1

[FIXED] RGB Color fields - float or int ?

Posted: Fri Mar 21, 2014 2:59 pm
by ThomasRisto
Hi there !

I seem to be having a problem when loading a point cloud (.las or ascii) when the color fields have been encoded in float32 (range from 0 to 255.0) instead of integers.

Basically, the data are the same, but if they are written as 255.00, I'll get only black points when switching to color mode (I tried floating points RGB colors in [0,1.0] but it doesn't work).

It's not a very important problem, but it took me some time to figure out what was happening...

Maybe it's not hard to fix, maybe this post can also help others understand why they can't color their point clouds ;)

Cheers
Thomas

Re: RGB Color fields - float or int ?

Posted: Fri Mar 21, 2014 4:00 pm
by daniel
For LAS files it's a bit strange (as the job is done by the LASlib library).

But for ASCII files, indeed CC assumes only integers values between 0 and 255 for the moment. It will be easy to accept floating point values between 0.0 and 255.0 indeed (we'll keep only their integer part though).

Re: RGB Color fields - float or int ?

Posted: Mon Mar 24, 2014 10:43 am
by ThomasRisto
Thansk for the answer !

About the LAS, maybe it's due to the way I write it myself (with laspy), so don't bother...