h-a-graham / rayvista

An R plugin for {rayshader} to view a 3D vista anywhere on earth.
GNU General Public License v3.0
107 stars 5 forks source link

Error with rgl functions #41

Open irakli-research opened 1 year ago

irakli-research commented 1 year ago

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?

h-a-graham commented 1 year ago

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")