1

Could someone point me to some R code to make programmatically nice GIF from LiDAR point clouds like the rotating one in the vignette of the LidR package (https://www.rdocumentation.org/packages/lidR/versions/3.0.3) ?

JRR
  • 3,024
  • 2
  • 13
  • 37
Adrien
  • 157
  • 8

1 Answers1

3
library(lidR)
library(rgl)

LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las = readLAS(LASfile)

exportPath = tempfile()

plot(las, bg = "white")
movie3d(spin3d(), duration = 5, movie = exportPath)

Check the documentation of movie3d and spin3d to control the speed and the number of frame.

JRR
  • 3,024
  • 2
  • 13
  • 37