r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
582 stars 130 forks source link

Large area point cloud disappears when plotting with color="Z" and legend=TRUE #764

Closed 1iny closed 1 month ago

1iny commented 1 month ago

Hi,

I've encountered an issue when plotting large area point clouds using lidR. The point cloud disappears when I set color = "Z" and legend = TRUE for areas around 100 hectares in size, if I set legend = FALSE, then no issue. This issue only occurs with relatively large area point clouds (even with low point density). I tried in different PCs and the same issue still exist.

Environment:

Code Example: plot(large_cloud_las, color = "Z", legend = TRUE)

Issue

Jean-Romain commented 1 month ago

How many points is large enough to reproduce?

1iny commented 1 month ago

How many points is large enough to reproduce?

My las file is about 200 points/sqm, area is 76 ha. I suspect its due to the area is too large. Cheers

Jean-Romain commented 1 month ago

76 ha is 0.76 km² so 3/4 of the standard 1km² file. However you have approx 150 million points. rgl definitively can't handle that. I do no have enough RAM on my machine to even give a try. Are you able to display 150 millions points with rgl?