Converting transition colors to solid color

Feel free to ask any question here
Post Reply
NaikJoy
Posts: 8
Joined: Sat Nov 18, 2017 10:05 am

Converting transition colors to solid color

Post by NaikJoy »

How could I convert the color from the roof top and the wall to a blue color in this example?
So I could extract the whole buildings..not just rooftops. :)

Image
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Converting transition colors to solid color

Post by daniel »

Wow... is the color coming from a scalar field or is it per-vertex RGB info?
Daniel, CloudCompare admin
NaikJoy
Posts: 8
Joined: Sat Nov 18, 2017 10:05 am

Re: Converting transition colors to solid color

Post by NaikJoy »

Oh you replied already :O that was super fast. Its coming from the scalar field. I read around the forum a few things so I know that I can adjust the slider and extract from the slider. So I extracted the rooftops and then I extracted the ground and merged them. I wanted to triangulate the buildings and be able to extract just them without the ground. So I won't need to delete it manually later.

I really wanna know how to do this.. it would help me a ton
Otherwise I'm trying real hard to make a racing game.
If I can do 1 square KM look like a racing game from 1998 I can then make 220 km to look like that
Image
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Converting transition colors to solid color

Post by daniel »

Well, if you have a scalar field (and in fact if you have already extracted the point corresponding to the roof tops), then you can compute the distance between the points on the roofs and the other points (the ones on the ground) with the 'Tools > Distances > Closest Point Set' tool (use the ground points as the 'compared' cloud, and the roof tops as the 'reference' cloud). This way, you will get the points of the ground that are the closest to the roofs, and hopefully it will be the base of the walls?

It's just a random guess. CloudCompare is not really meant to work with meshes ;)
Daniel, CloudCompare admin
NaikJoy
Posts: 8
Joined: Sat Nov 18, 2017 10:05 am

Re: Converting transition colors to solid color

Post by NaikJoy »

Oh thank you so much for the reply. I will do as instructed here. Gonna go try this out now.
I'll be back if I get stuck somewhere along the way.
NaikJoy
Posts: 8
Joined: Sat Nov 18, 2017 10:05 am

Re: Converting transition colors to solid color

Post by NaikJoy »

It doesn't create enough points to make good walls. I tried a few combinations but its no good.
Is there any other way?
Would it help if I gave you the file?
https://ufile.io/3zl1x

EDIT:
I think an option should be created that could turn that blue-gray transition into a solid blue.
I would really come in handy to me now now to extract just buildings.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Converting transition colors to solid color

Post by daniel »

Well that's not that simple (the color is automatically interpolated by OpenGL here, it's purely visual).

You could also try to play with the scalar field that gives you the 'blue' color (is this the classification) by spatially enlarging it (for instance with Edit > Scalar fields > Smooth) for instance.

I'll try with your file if I find the time.
Daniel, CloudCompare admin
NaikJoy
Posts: 8
Joined: Sat Nov 18, 2017 10:05 am

Re: Converting transition colors to solid color

Post by NaikJoy »

Thanks again :)
You give me hope.

I'll follow your suggestions.
I'm a noob. I'll come back if something goes wrong.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Converting transition colors to solid color

Post by daniel »

Okay I extracted the class 6 from the LAS cloud (for the roofs) and the class 2 (for the ground).

Then I used the 'Closest Point Set' tool with the ground (class 2) as reference and roofs (class 6) as compared (the opposite of what I told you I believe ;).

And then I get a not that bad result:
cc_buildings.JPG
cc_buildings.JPG (71.74 KiB) Viewed 1734 times
I mean it would be hard to get a much better one. Apart maybe by playing with the scalar field beforehand (but I won't have to try).
Daniel, CloudCompare admin
NaikJoy
Posts: 8
Joined: Sat Nov 18, 2017 10:05 am

Re: Converting transition colors to solid color

Post by NaikJoy »

Hmm.. I'm sceptically worried this might not be enough for a good result in 3D and ripping.
But I will do this. I'll play around with it and hopefully get results.

Thanks again Daniel!
Cheers!
https://www.youtube.com/watch?v=BQIt6m6pbJU
Post Reply