Bug - saving colours in LAS file

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
mariolino
Posts: 32
Joined: Fri Sep 08, 2023 11:10 am

Bug - saving colours in LAS file

Post by mariolino »

hi Daniel,

I want to report a bug, when a cloud has no RGB colour, and I assign it any unique colour or an HSV colour (after calculating the normals) if I try to save the LAS file the controbox RGB and the controlbox Normals(AsExtraScalarfiled) box are not activated (in the "LAS Save Options").
If instead I import a cloud with colour, delete the colour and assign a unique colour then the option to save the cloud in LAS also has the option of saving the RGB colour.

thanks
Mariolino
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Bug - saving colours in LAS file

Post by daniel »

I can't reproduce this problem (with version 2.13.beta from the 18th of January).

Were you using an older version maybe? Maybe you can check that the 'version' and 'point format' (first tab) are sufficient to save RGB colors?

Should be at least version 1.2 and format 2 I believe.

Else, don't hesitate to send me the original file (without colors) for me to test (admin@cloudcompare.org)
Daniel, CloudCompare admin
mariolino
Posts: 32
Joined: Fri Sep 08, 2023 11:10 am

Re: Bug - saving colours in LAS file

Post by mariolino »

hello Daniel,

you are right! Depending on the version of the LAS file the different options are activated, in particular I was getting the default version 1.4 sub 6 which doesn't allow colour and extra field, changing to sub 7 works. I attach if needed for other users the complete table for colour, extrafield, waveform support.

Many thanks
Mariolino
Attachments
Table_LAS.png
Table_LAS.png (21.43 KiB) Viewed 7120 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Bug - saving colours in LAS file

Post by daniel »

So by default, did CC chose the point format 6 while there were some colors on your cloud?
Daniel, CloudCompare admin
mariolino
Posts: 32
Joined: Fri Sep 08, 2023 11:10 am

Re: Bug - saving colours in LAS file

Post by mariolino »

Hi Daniel
this is a cloud with assigned color inside CC. Original was 1.4 sub 6, but after addinc color don't promote to sub xx during saving with supported color.
Mariolino
Attachments
example.zip
(327.12 KiB) Downloaded 791 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Bug - saving colours in LAS file

Post by daniel »

Thanks for the sample. That should be fixed now (https://github.com/CloudCompare/CloudCompare/pull/1950).

I'll upload a new version this week-end (or even the stable 2.13 release if everything goes as planned!)
Daniel, CloudCompare admin
mariolino
Posts: 32
Joined: Fri Sep 08, 2023 11:10 am

Re: Bug - saving colours in LAS file

Post by mariolino »

Many Thanks !!
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Bug - saving colours in LAS file

Post by daniel »

I've uploaded a new 2.13.beta version online (with the fix)
Daniel, CloudCompare admin
mariolino
Posts: 32
Joined: Fri Sep 08, 2023 11:10 am

Re: Bug - saving colours in LAS file

Post by mariolino »

many thanks !
Post Reply