Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facilitate use from RStudio #27

Open
bhogan-mitre opened this issue Feb 1, 2019 · 5 comments
Open

Facilitate use from RStudio #27

bhogan-mitre opened this issue Feb 1, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@bhogan-mitre
Copy link

Thank you for this great package! I am excited about the potential use cases here.

One suggestion would be to set options to facilitate use from within RStudio by using WebGL instead of X11. This is essential and not just a nicety on RStudio Server since X11 is not available in that environment. It took me longer than I care to admit to figure that out. I think I would prefer this even on RStudio (desktop).

Thanks for considering.

@bhogan-mitre
Copy link
Author

This seems tricky since .onLoad doesn't appear to happen early enough to set options that are used by dependencies. It could be handled upstream in rgl's .onLoad.

In the meantime, perhaps advise RStudio users to set the following prior to library(rayshader):

# send output to Viewer rather than external X11 window
options(rgl.useNULL = TRUE,
        rgl.printRglwidget = TRUE)

@fomightez
Copy link

fomightez commented Feb 2, 2019

I wonder if your "meantime" approach @bhogan-mitre will help in regards to this comment I made a few days ago. It concerns using it on remote servers with no X11. Actually RStudio server and more.
I had tried the first part already but did not include rgl.printRglwidget = TRUE.

@tylermorganwall
Copy link
Owner

writeWebGL currently is fairly limited in its utility--It only supports 65536 vertices per object, so it's not ideal given map dimensions will be limited to a maximum of 256x256. I've got a glTF 2.0 output function written that will eventually be included that has no such limitations, so that's going to form the basis of a rglwidget() replacement that could be used on RStudio server.

@seabbs
Copy link

seabbs commented Jul 1, 2019

I'd be keen to see an implementation that works with Rstudio server. Usually, everything I do is dockerised so having to install locally just for rayshader is a shame.

Great work on this though 👍

@joachim-gassen
Copy link

writeWebGL currently is fairly limited in its utility--It only supports 65536 vertices per object, so it's not ideal given map dimensions will be limited to a maximum of 256x256. I've got a glTF 2.0 output function written that will eventually be included that has no such limitations, so that's going to form the basis of a rglwidget() replacement that could be used on RStudio server.

Sorry for hijacking this old issue but I was wondering whether you are still working on that glTF 2.0 output function and/or would be willing to share your progress. I am currently looking into something very loosely related and that would need a writeGLTF function for rgl. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants