CloudCompare and Potree

Feel free to ask any question here
Post Reply
Kristiansax
Posts: 2
Joined: Wed Sep 05, 2018 2:09 pm

CloudCompare and Potree

Post by Kristiansax »

Hello,

I'm currently using CloudCompare as a means to compare a pointcloud and a mesh, however I will need to show this comparison in a browser. I read in another thread that potree would be a good way to do this, but I haven't managed to get it to work yet. So my question is; how do you show a comparison with potree? So far I've followed the instructions on http://www.potree.org/getting_started.html (setting up an Apache server with XAMMP), and this works for their own .laz/.las files that are included as examples, and when i pass it a .bin file from CloudCompare it will process it without errors, but nothing shows up in the page it creates. Is there something extra you have to do to get CloudCompare files to work?
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: CloudCompare and Potree

Post by daniel »

I dont' think Potree can read BIN files from CloudCompare. Can't you load an ASCII (text) file instead?
Daniel, CloudCompare admin
Kristiansax
Posts: 2
Joined: Wed Sep 05, 2018 2:09 pm

Re: CloudCompare and Potree

Post by Kristiansax »

You're right! I didn't know CloudCompare had options for saving as ASCII, but now I've hit another issue. The colors are way off when the model is loaded in Potree. Instead of being blue/green/red (like the comparison in CloudCompare), it's now yellow and blue.
Attachments
potree.PNG
potree.PNG (502.62 KiB) Viewed 2491 times
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: CloudCompare and Potree

Post by daniel »

Colors are not saved in the cloud by default, only the distance values. They are then mapped with false colors by CloudCompare or Potree, in a different way I guess. In CC you can change the 'Color ramp' associated to each scalar field. You may have the same mechanism in potree.

Another option is to convert the fake colors currently associated to the scalar field as colors (Edit > Scalar fields > Convert to RGB) and then save the ASCII file (in which case the file will contain both the distances AND the mapped colors). Potree should be able to use this information instead of the distance values.
Daniel, CloudCompare admin
Post Reply