rayvista
rayvista copied to clipboard
Error with rgl functions
When I run plot_3d_vista() I get the matrix object but no rgl window with the map.
rayvista::plot_3d_vista( lat = gaza_lat, long = gaza_long, radius = 3500, zscale = 5, elevation_detail = 13, zoom = .8, solid = FALSE, overlay_detail = 14, theta = 0, windowsize = 800 )
I get the warning :
Warning messages: 1: 'rgl.surface' is deprecated. Use 'surface3d' instead. See help("Deprecated") 2: 'rgl.viewpoint' is deprecated. Use 'view3d' instead. See help("Deprecated") 3: 'rgl.triangles' is deprecated. Use 'triangles3d' instead. See help("Deprecated")
I have updated everything, restarted the computer, still the same error.
I have tested an example code for rgl and it works:
help("Deprecated")
library(rgl) example(plot3d) rglwidget()
Is this a known issue?
It looks like it is reported over at https://github.com/tylermorganwall/rayshader/issues/272
Hopefully updating rayshader from source should solve things:
install.packages("remotes") remotes::install_github("tylermorganwall/rayshader")