I am trying to move the perspective of the rendered 3D scene in RGL after calling plot_3d in rayshader. I don't have a middle click on my computer, just left and right. When I open RGL using for example plot(las) to plot a lidR point cloud, I can use Shift + Right Click and drag to change perspective. However, in the RGL spawned by plot_3d I can't figure out how to do this.
How to change perspective in Rayshader RGL without a middle mouse button?
82 Views Asked by Max Ogden At
1
There are 1 best solutions below
Related Questions in RGL
- 'You must enable Javascript to view this page properly' error in shiny (R)
- How to export an interactive rgl 3D Plot to share or publish?
- How to set rgl label colors
- How to plot a plane from an equation in R
- Why is my 3D plot not showing up in R Studio plot viewer?
- Why do I need SVN to install rgl from github using install_github?
- R plot3d coloring
- Including a 3D interactive figure in html and static in word/pdf using knitr and rgl
- knitr and rgl: inconsistent size?
- How to close rgl X11 windows?
- How to create 2D slice plots from 3D data in R ?
- Help in using rgl package
- rgl installation in Mac: X11 not found
- Is it possible to create mesh3d objects without indices information?
- rgl: How to avoid moire effect in transparent 3D ellipsoids?
Related Questions in RAYSHADER
- Population Density Maps: How to deal with NAs in heightmap matrix for rayshader?
- How to change perspective in Rayshader RGL without a middle mouse button?
- how to use the rayshader packge for 3D surface from x, y, z
- Change plot size of rglwidget in shiny
- Plot levitating object in rayshader
- Cannot generate clouds in Rayshader due to DEM issues?
- R rayshader package plot_gg gives blank window
- Variable zoom on 3D rayshader rgl plot
- How to plot polygons in shapefile with z coordinate in 3D using rayshader
- Overlaying an image onto Rayshader map so that they are aligned
- Raster to matrix in R returns NA,Rayshader
- render_highquality from rayshader R package only rendering black .png image
- Rayshader, how to prevent that plot_gg displays edges of polygons
- Having Trouble Making ggplot 3D Using plot_gg
- Problems using `plot_gg()` from `rayshader` package - R
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
rayshader::plot_3dsetsrgl::par3d("mouseMode")toOn my system (a Macbook Air with a trackpad and no mouse) I seem to have it configured so right and middle buttons are not available, but two finger drags on the trackpad are seen as mouse wheel rotation. I also hate the
"polar"mouse control, so if I wanted to be able to rotate the scene and also change the field of view (but lose zoom), I could change it usingand then clicking and dragging rotates the scene, while a two finger drag (no click necessary) changes the FOV. Your system may map mouse modes differently, so experiment.
According to the
?rayshader::plot_3dhelp page, once you have it right and have the desired settings inmm, you can use them for a new plot withHowever, the line that would implement that appears to be commented out in the source code: https://github.com/tylermorganwall/rayshader/blob/81f95cf24973049f84f4a4250daa9b0b4659281d/R/plot_3d.R#L356