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
- Control space between data lines in a 3D plot
- Displaying an updating network graph without reloading wireframe
- Callback behavior for objects with the same scene ID
- setUserCallbacks() to scene generated with newSubscene3d()
- How to use point shapes other than spheres in rgl?
- I can't get rgl to save snapshots or gifs
- Is the return value of cur3d() correct in this example?
- how to fix incorrect image saving as vector graphics in "rgl" package?
- rgl.setMouseCallbacks: Callbacks Cannot Restore Default Behavior
- Animate trajectory in a Shiny app without explicit controls
- How to change default position of RGL window in R?
- How to check/decide/segment whether a point is inside a 3d cone?
- How to change perspective in Rayshader RGL without a middle mouse button?
- planes3d expands and draws the area based on the sphere's radius
- Print an rgl plot from each iteration in a for loop to HTML in RMarkdown?
Related Questions in RAYSHADER
- Rayshader: adding a white background to a 2D plot
- Is there an R-package to make a spatial 3D visualization of layers, including the subsurface?
- How to change perspective in Rayshader RGL without a middle mouse button?
- Population Density Maps: How to deal with NAs in heightmap matrix for rayshader?
- How can I plot 4D results as a surface in R?
- How can I remove black background from the 3D plot using plot_gg() with Rayshader in R?
- RGL: GL Library : Maximum texture size of 1024x1024 exceeded
- How to downgrade rayshader?
- Add text based on shape of the map on map 3D (with Rayshader)
- Polygon edges and sides distorted in rayshader render
- Rayshader path has offset when plotting a ggplot2 object
- Why is the background of my plot black when I use plot_gg() from Rayshader in R
- Add color on height 3D map with Rayshader in R
- add 2D image on 3D Plot RGL Device with rayshader in R
- Plotting geom_sf with rayshader on OSX throws error converting geom to grob
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 # Hahtags
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