tudelft3d / City3D

Large-scale LoD2 Building Reconstruction from Airborne LiDAR Point Clouds
https://github.com/tudelft3d/City3D
GNU General Public License v3.0
223 stars 36 forks source link

[BUG] - put here a short description of the issue #47

Closed najsdh closed 1 month ago

najsdh commented 1 month ago

Hello Teacher Nan, I've encountered a new issue. It seems like the footprint I generated for this building matches correctly with the building's point cloud data when viewed in other software. However, when I input it into City3D software, it seems like both the point cloud and the footprint data disappear. I'm wondering if this is a projection issue. Below are my building point cloud and footprint data. data.zip

yidahuang commented 1 month ago

CleanShot 2024-05-15 at 11 19 09@2x I quickly checked your data. The raw data in .las format usually represents a very large area of urban scenes, and some coordinates may have very large values. To render it in OpenGL, we translate it using the coordinates of the first point in the point cloud when loading the data.

The current implementation doesn't translate the .obj footprint data with the first point, which is why they look disappear. A quick way to solve this is to export your .las point cloud into .ply format; this way, the data will not be translated.

CleanShot 2024-05-15 at 12 35 39@2x

najsdh commented 1 month ago

Thank you, Teacher Huang. I'm very grateful for your response. I've tried to reconstruct the data, but I've found that due to the poor quality of the point cloud, reconstruction takes a long time, especially when dealing with complex buildings, and sometimes the program gets stuck. After reviewing some previous questions, I suspect that there may be too many initially detected roof planes. So, I wanted to ask if it's possible to modify certain parameters in the code to reduce the number of fitted planes, thus facilitating the model's reconstruction. Additionally, I've noticed that adjusting these parameters also affects the reconstruction speed. I'd like to know the specific roles of these parameters and how to modify them to better suit my data. I'm looking forward to your response. Wishing you a pleasant life and smooth work.

najsdh commented 1 month ago

image

yidahuang commented 1 month ago

If you want a detailed description of parameters, please directly read our paper. For parameters tunning, you can refer to issue #4 , #18 and #36, we have explained how to tune the parameters for their cases. In your case, maybe you can increase the parameter "Number" for plane detection. Honestly speaking, the quality of data you provided is very poor, it is hard to recognize the roof planes even for human eyes.