tylermorganwall / rayshader

R Package for 2D and 3D mapping and data visualization
https://www.rayshader.com/
2.06k stars 214 forks source link

render_snapshot(clear=TRUE) doesn't work #211

Closed Savedbygrace98 closed 2 years ago

Savedbygrace98 commented 2 years ago

I tried to plot a population map with Rayshader. But I encountered a problem: "In rgl.snapshot(filename, fmt, top) : this build of rgl does not support snapshots" Rprogrammiing " And I have a total black image.

tylermorganwall commented 2 years ago

You are using the NULL rgl device, which does not support snapshots. You can either reinstall rgl with OpenGL support, or set render_snapshot(software_render = TRUE) which uses a software renderer to take snapshots, rather than rgl. I recommend setting a cache_filename in render_snapshot() if you choose the second method, otherwise it will be much slower.

Savedbygrace98 commented 2 years ago

Please, explain me clearly, step by step both methods. I'm almost a total newbie with R.